"ढाँचा:Precision" का संशोधनहरू बिचको अन्तर

Fixed to handle zero: 0 as 0, 0.000 as 3, or 0.0 as 1, etc.
again, fixed integer 0 as 0, by fixing check for integer
पङ्क्ति ७:
--></noinclude>{{#ifeq: {{{1|15.1230}}}|0|<!--then handle zero
-->{{#expr: {{str_len|{{{1|0.00}}}}} - 1 <!--
--> {{#ifexpr: {{{1|0.00}}}=+1 > {{{1|0.00}}}01 | - 1}}<!--
--> {{#ifexpr: {{{1|0.00}}} < 0| - 1}} }}<!--endexpr
-->|<!--else determine the
पङ्क्ति २३:
-- subtracting integer length, minus the decimal point if
-- not an integer, minus 1 if negative.
--
--NOTE B2: The check for whole integer 0 compares adding 1 to
-- the amount, versus appending "1" at the end: when the
-- amount is a decimal, then adding 1 will be larger than
-- appending 1 at the end: 0.00 + 1 > 0.001, whereas for
-- whole zero, it would be less: n+1 < n1, due to the
-- value becoming n+1 < n*10+1. So, for integer 0, the
-- check rejects: 0+1 < 0*10+1 (1), so 0 is integer.
--
--
---------------------------------------------------------------
"https://ne.wikipedia.org/wiki/ढाँचा:Precision" बाट अनुप्रेषित