Content deleted Content added
tt -> code |
GKNishimoto (talk | contribs) No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1:
{{
{{
{{Lua sidebar}}
This module implements the {{
* Module supports 0 as a Roman numeral, displays as 'N'.
* Prior to 25 April 2016, used to display 69105 as <span style="text-decoration:overline;">LXV</span>MMMMCV. With the addition of <span style="text-decoration:overline;">IX</span> and <span style="text-decoration:overline;">IV</span> being 9000 and 4000 respectively, we now display 69105 as <span style="text-decoration:overline;">LXIX</span>CV.
* Module handles decimal, fractional, and arithmetic expressions to a precision of 1/1728. {{
== Handling tricky cases (like 0.00001 and 99.99999) ==
# Find the Roman numerals for the integer part of the number.
# If the number is not an integer:
Line 15 ⟶ 16:
# Hence, 0.00001 is guaranteed to have at least the smallest unit symbol (instead of being blank or 0), and 99.99999 does not display as 100 or 99 and 2 halves.
== Validation ==
* [[Template:Roman/testcases]]
* [[Module:Roman/testcases]] - does not contain fractional/decimal tests
* The template supports <code>subst:</code> and <code>safesubst:</code>.
<noinclude>
[[pt:Módulo:Roman/doc]]
</noinclude>
|