Formula:Precision/tz/doc

E Vicipaedia
Jump to navigation Jump to search

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