Roman numeral by Carlos Gutierrez

do
p=instr("IXCMVLD",chr$(peek(0)))
if!p?v:v=.1
a=d:m=5^(p>4):d=m*10^(p-m):v=v+d-2*a*(d>a)loop

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page