Skip to content
EntityQ6045447· pop 99

Template:Precision

Sign in to save

Wikimedia template

In the Vinony graph

It sits within the topics Mathematical function templates and Templates based on the Math Lua module.

Its subject is documented across 94 Wikipedia language editions.

Wikidata facts

via Wikidata · CC0

~4 min read

Encyclopedic overview

Template documentation view] [edit] [history] [purge]

The Template:Precision 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). For fractional input it returns the base ten logarithm of the numerator.

Excerpted from Wikipedia’s “Template:Precision” article, available under the CC BY-SA 4.0 licence.

Categories