Talk:Roman numerals/Decode: Difference between revisions

m
corrected a misspelling.
m (→‎asking for help: changed a verb tense. -- ~~~~)
m (corrected a misspelling.)
 
(9 intermediate revisions by 3 users not shown)
Line 1:
== I for one like Roman numerals ==
'Nuff said.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 13:20, 29 November 2019 (UTC)
 
== Hello ==
Hello<br>
My code http://rosettacode.org/wiki/Roman_numerals/Encode#Prolog works in both ways Roman => Arabic and Arabic => Roman. It can be published in this page. [[user:Trap D]] 13/05/2011 18:25
Line 4 ⟶ 8:
==Roman numeral numbers==
 
I feel that any legal Roman numeral number (such as <tt>&nbsp; '''IIII''' </tt>&nbsp; should be converted correctelycorrectly and without error. The Romans started using <tt>&nbsp; '''IV''' </tt>&nbsp; (and others) &nbsp; after they realized the praticablenesspracticability of shortening their numbers, especially those having <tt>&nbsp; 8s'''8'''s </tt>&nbsp; in them; &nbsp; easily justified when chiseling those numbers in stone or inscribing them in wet clay.
 
justified when chiseling those numbers in stone or scribing them in wet clay.
<br>Also, numbers such as <tt>&nbsp; '''IIXX''' </tt>&nbsp; should also be converted correctly, as they do appear on old structures and tombstones. &nbsp; Even though modern rules say such a construct may be invalid, the number still has an equivalent decimal number. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] 03:53, 25 April 2012 (UTC)
 
though modern rules say such a construct is invalid, the number still has an equivalent decimal number. -- [[User:Gerard Schildberger|Gerard Schildberger]] 03:53, 25 April 2012 (UTC)
Furthermore, the Latin word for &nbsp; '''eighteen''' &nbsp; is &nbsp; '''duodeviginti''' &nbsp; which literally means &nbsp; '''two-from-twenty''', &nbsp; or in Roman numbers; &nbsp; '''IIXX'''. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:34, 9 July 2012 (UTC)
 
==asking for help==
Line 13 ⟶ 18:
Does anyone know how to fix a problem I'm having with the overbar template which, for some reason, decides to italicize the text after the overbarred characters "for twenty-thousand"?
<br>The offending code is in the REXX program, version 4. People should never give a loaded gun to kids. Pardon me if this isn't the right place to ask this type of question. I couldn't find any other usage of overbars in Rossetta Code.
<br>I can "fix" the overbar/italicizing problem by putting the "for twenty-thousand" on a new line (via the html "br").
<br>Also, I would like to express how to display an HTML tag without HTML "using" it (as in the previous line). I assume that there's some type of escape character(s). -- [[User:Gerard Schildberger|Gerard Schildberger]] 03:38, 25 April 2012 (UTC)
 
It was a stray newline in the [[Template:Overline]] which I just now fixed. If you want to talk about HTML then you can escape it in the usual fashion, &amp;amp;br>, or you can use <nowiki><no</nowiki><nowiki>wiki><br></no</nowiki>wiki>. HTML inside of &lt;lang> blocks is also not interpreted. —[[User:Kevin Reid|Kevin Reid]] 19:37, 25 April 2012 (UTC)
 
though: modernThanks rulesfor saythe suchfix aand constructthe ishints invalid,(albeit thea numberwee stillbit haslate anfor equivalent decimalthe numbergratitude). -- [[User:Gerard Schildberger|Gerard Schildberger]] 0307:5323, 2511 AprilJuly 2012 (UTC)
 
==Roman numeral, returning an integer==
 
This task asks to take a Roman numeral (as its argument) &nbsp; and return a numeric decimal integer. &nbsp; This assumes that the Roman numeral is an integer.
 
What if the Roman numeral contains (or is) a fraction?
 
I presume then, that Roman numerals to be checked won't have fractions. &nbsp; The Romans had a base '''12''' fractional system. &nbsp; One-twelfth (fraction) &nbsp; is an &nbsp; ''ounce'' &nbsp; which we still use in (for weight) &nbsp; pounds and ounces, where the troy pound contains 12 ounces. &nbsp; An '''ounce''' is also used as a unit of time. &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] 07:23, 11 July 2012 (UTC)
 
:We aren't doing fractions here. In general "Roman numerals" refers to the the integers. --[[User:Mwn3d|Mwn3d]] 19:50, 18 July 2012 (UTC)