Template:Precision/a

From Wikibooks, open books for an open world
Jump to: navigation, search
Template documentation[edit] [history] [purge]

The subtemplate is called by {{precision}} (the main template page). This main page will have determined whether the input is in the form of a fraction or decimal/integer.

  • For fractional input it returns the base ten logarithm of the numerator.
  • Otherwise it determines whether the input is a decimal or integer and calls either {{precision/1}} or {{precision/0}} accordingly.