Template talk:Precision/0
The Template:Precision/0 gives an expression for the number of consecutive zero-digits "0" before the decimal point in parameter 1. To count the zero-digits (as a negative count), the resulting expression should be evaluated inside a #expr string: {{#expr: {{precision/0|1200}} }}.
Examples:
- {{precision/0|1200}} = -(11200=11200round-5)-(11200=11200round-4)-(11200=11200round-3)-(11200=11200round-2)-(11200=11200round-1)
- #expr: {{precision/0|1200}} = -2
- #expr: {{precision/0|1230}} = -1
- #expr: {{precision/0|6000}} = -3
- #expr: {{precision/0|10040}} = -1
- #expr: {{precision/0|123}} = 0
- #expr: {{precision/0|2000000.0}} = -6
- #expr: {{precision/0|2000000.000}} = -6
- #expr: {{precision/0|2000000.03}} = 0
- #expr: {{precision/0|45.00}} = 0
- #expr: {{precision/0|45.0006}} = 0
Other examples:
-(112345.67=112345.67round-5)-(112345.67=112345.67round-4)-(112345.67=112345.67round-3)-(112345.67=112345.67round-2)-(112345.67=112345.67round-1)
-(112345.6=112345.6round-5)-(112345.6=112345.6round-4)-(112345.6=112345.6round-3)-(112345.6=112345.6round-2)-(112345.6=112345.6round-1)
-(112345=112345round-5)-(112345=112345round-4)-(112345=112345round-3)-(112345=112345round-2)-(112345=112345round-1)
-(112340=112340round-5)-(112340=112340round-4)-(112340=112340round-3)-(112340=112340round-2)-(112340=112340round-1)
-(112300=112300round-5)-(112300=112300round-4)-(112300=112300round-3)-(112300=112300round-2)-(112300=112300round-1)
-(112000=112000round-5)-(112000=112000round-4)-(112000=112000round-3)-(112000=112000round-2)-(112000=112000round-1)
-(110000=110000round-5)-(110000=110000round-4)-(110000=110000round-3)-(110000=110000round-2)-(110000=110000round-1)