Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleAvailability

This routine is available

...

starting with katl-commons 2.5.


Syntax

...

roman(arabic number)

Description

...

Excerpt

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

...


Parameters

...


ParameterTypeRequiredDescription
arabic numberNumberYesThe arabic numeral you want converted

Return type

...

string


Example

...

Code Block
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:

 

...

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "math_routines"
labelsmath_routines