Skip to end of banner
Go to start of banner

roman

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Availability

This routine is available starting with SIL Engine™ 2.5.


Syntax

roman(arabic number)

Description

Converts an Arabic numeral to Roman numeral, as text, of course.

Parameters

ParameterTypeRequiredDescription
arabic numberNumberYesArabic numeral you want converted.

Return type

string


Example

string a = roman(7);
print("a= " + a);
string b = roman(2034);
print("b= " + b);

Prints: a= VII;

           b= MMXXXIV;

Notes

  • If number is less than 0 and greater than 3999 an empty string is returned.

See also


  • No labels