Template:Precision

From NationStates Sports Wiki
Revision as of 17:03, 15 August 2010 by wikipedia>Wikid77 (created, as utility template, to get precision of any number, large or negative, using a fast algorithm)
Jump to navigation Jump to search

Expression error: Unrecognised punctuation character "[".
The Template:Getprecision determines the precision (as a count of decimal digits) for any amount, large or negative, using a fast algorithm. It can also handle a trailing decimal point (such as "15." or "-41.") or trailing zeroes (such as "15.34000" having precision as 5 decimal digits).

Examples

Some examples:

{{precision| -15.123}} → Expression error: Unrecognised punctuation character "[".
{{getprecision| -15.123}} → Template:Getprecision
{{getprecision| -15.2500}} → Template:Getprecision
{{Getprecision |23000222000111.432}} → Template:Getprecision

See also