format - How to print roman numerals greater than 3,999? -
i want print several numbers roman numerals but
(format t "~@r~%" 4000)
leads following error in sbcl 1.3.20 , similar 1 using ccl:
number large print in roman numerals: 4,000 [condition of type simple-error] restarts: 0: [retry] retry slime repl evaluation request. 1: [*abort] return slime's top level. 2: [abort] abort thread (#<thread "new-repl-thread" running {100503d2b3}>)
i did not find information limit in hyperspec , wasn't aware romans had numbers unto 3,999.
is there ready-to-use solution print numbers greater 3,999 roman numerals?
there no consensus among romans on large number representation. cl implementors demurred on resolving controversy, since both approaches used romans ("apostrophus" , "vinculum") unsuitable representation in ascii on tty.
ps. 3.999
can approximated iv
;-)
wiki
Comments
Post a Comment