Talk:Roman numerals/Encode: Difference between revisions

no edit summary
(→‎Spec?: clarified the use of lowecase j instead of i. -- ~~~~)
No edit summary
Line 62:
:: It depends on the fonts you've got installed; if they don't have the character glyph, you get that box (on Windows; different platforms have different substitutions). Not much we can do about that. –[[User:Dkf|Donal Fellows]] 10:46, 26 April 2012 (UTC)
:I think they're permitted. Worth it? I dunno. Judging by the "modern Roman numerals" stuff I don't think people really use them anymore. If you want to then go for it. --[[User:Mwn3d|Mwn3d]] 02:57, 26 April 2012 (UTC)
 
== UNIX Shell problem (fixed) ==
There is an error in how the function for encoding Arabic to Roman numbers is currently written for the UNIX Shell.
In fact, the number "9" is misencoded in "VIV" instead of "IX", as also clear from the published example: 1999 = MCMXCVIV .
This error is easily fixable by inserting the "9" in the values array: change the line
local values=( 1000 900 500 400 100 90 50 40 10 5 4 1 )
into
local values=( 1000 900 500 400 100 90 50 40 10 9 5 4 1 )
Anonymous user