roman

Summary

Generates a roman representation of a number.

Usage

input|roman( value )

Parameters

NameTypeDescriptionRequired
value integer A number that should be converted. Only if the input parameter is omitted.

Returns

A string containing a roman number.

Description

This operator will convert either the input or the "value" parameter to a roman number. If both are provided, it is the "value" parameter that will be used.

Examples

Example 1

{8|roman()}

or

{roman( 8 )}

The following output will be produced: "VIII".

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.