Handbook
Glossary
>ROMAN ( n -- str )
Roman numerals
Prev:
>roman ( n -- str )
Next:
roman> ( str -- n )
Vocabulary
roman
Inputs
n
an
integer
Outputs
str
a
string
Word description
Converts a number to its upper-case Roman numeral equivalent.
Notes
The range for this word is 1-3999, inclusive.
Examples
USING: io roman ; 56 >ROMAN print
LVI
See also
>roman
,
roman>
Definition
USING:
unicode
;
IN:
roman
:
>ROMAN
( n -- str )
>roman
>upper
;