Formula:Precision/tz

E Vicipaedia
Jump to navigation Jump to search
Documentation icon Documentatio formulae[considerabit] [recense] [historia]

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

Examples[fontem recensere]

{{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