Roman numeral by doug

:let[I,V,X,L,C,D,M]=[1,5,10,50,100,500,1000]|%norm:s/\vI[VX]|X[LC]|C[DM]/-\0/ge|s/./+\0/g\x16\x0dD@='i'.eval(@")\x16\x0d
ZZ

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

download

return to the top page