Jump to content

Template:Precision/tz

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Revision as of 22:49, 6 May 2011 by John James (talk | contribs) (Created page with "<includeonly>{{precision/tz/1|x{{{1}}}|x{{#expr:{{{1}}}+0}}}}</includeonly><noinclude>{{template doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation icon Template documentation[view] [edit] [history] [purge]

This template, {{precision/tz}}, returns the number of trailing zeroes after the decimal point.

Examples

{{Precision/tz|123}}

0

{{Precision/tz|123.}}

0

{{Precision/tz|123.0}}

1

{{Precision/tz|123.4}}

0

{{Precision/tz|123.40}}

1

{{Precision/tz|123.000}}

3

{{Precision/tz|123.4000}}

3

{{Precision/tz|100}}

0

{{Precision/tz|100.}}

0