Talk:Roman numerals/Encode: Difference between revisions

m
added a new talk section.
(→‎Spec?: added ''style'' to ''Attic'' and explained (somewhat) the Attic style.)
m (added a new talk section.)
 
(3 intermediate revisions by 2 users not shown)
Line 1:
== I for one like Roman numerals ==
'Nuff said.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 13:17, 29 November 2019 (UTC)
 
== enforcing a requirement ==
The Java example does not enforce the requirement that the parameter for the conversion function must be a positive integer. Enforcement of such a requirement should result in an error condition, such as an exception, rather than simply no output when a value less than 1 is passed to the function.--[[User:Waldorf|Waldorf]] 21:14, 31 March 2008 (MDT)
:Fixed. --[[User:Mwn3d|Mwn3d]] 21:22, 31 March 2008 (MDT)
Line 22 ⟶ 26:
* use of (Roman) fractions [based on twelfths]
* expression of large numbers
* support for   ''zero''   (or ''nothing'')
* Attic style
* old style
Line 29 ⟶ 33:
Attic style is a Greek style (also known as acrophonic or Herodianic numerals). Attic numerals were in use by the Greeks around the 7th century BCE before they converted to their later Greek numerals, but you can clearly see the influence they had on Roman numerals.
 
Modern style is where   '''IV'''   is always used instead of   '''IIII''',   but almost all clock-face makers (of clocks and wrist watches that use Roman numerals) today use the old style, and also where '''u''' and '''j''' are used in addition of '''v''' and '''i''' (respectively).
 
Also where   '''u'''   is used in addition to (or instead of)  '''v''',     and   '''j'''   is used in in place of (any) trailing   '''i'''.
The manner of expressing large numbers could be considered an option. The REXX program that I included uses parentheses and ''deep'' parentheses for large numbers.
 
The manner of expressing large numbers could be considered an option.   The REXX program that I included uses parentheses and ''deep'' parentheses for large numbers.
There are also post-modern (my word, I don't know the real word for this style) where many other (Latin) letters are used for 200, 400, and other numbers. -- [[User:Gerard Schildberger|Gerard Schildberger]] 07:47, 14 July 2012 (UTC)
 
There are also post-modern (my word, I don't know the real word for this style) where many other (Latin) letters are used for   '''200''',   '''400''',   and other numbers. -- [[User:Gerard Schildberger|Gerard Schildberger]] 07:47, 14 July 2012 (UTC)
 
== Perl problem ==
Line 60 ⟶ 66:
:: 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 )