Difference between revisions of "Template:Precision1"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
(Created page with '<includeonly>{{#expr:{{#ifeq:{{{1}}}|0|0|{{#ifexpr:{{{1}}} round 0={{{1}}}|0|{{#ifexpr:{{{1}}} round 1={{{1}}}|1|{{#ifexpr:{{{1}}} round 2={{{1}}}|2|{{#ifexpr:{{{1}}} round 3={{{…')
 
m (1 revision)
(No difference)

Revision as of 17:53, 18 January 2010

[edit] [purge] Template documentation

{{precision1}} is very similar to {{precision}}, but the output range is only 0 to 6. Thus the functinality of {{precision1}} is a subset of the functionality of {{precision}} but the advantage is that the template code is much shorter. It is useful when one has to be cautious of template limits.

Examples

{{Precision1|111.12345678}}

6

{{Precision1|111.1234567}}

6

{{Precision1|111.123456}}

6

{{Precision1|111.12345}}

5

{{Precision1|111.1234}}

4

{{Precision1|111.123}}

3

{{Precision1|111.12}}

2

{{Precision1|111.1}}

1

{{Precision1|111}}

0

{{Precision1|110}}

0

{{Precision1|100}}

0

{{Precision1|111.10}}

2

{{Precision1|111.100}}

3

{{Precision1|111.1000}}

4

fr:Modèle:Precision1 ia:Patrono:Precision1 it:Template:Precision1 ja:Template:Precision1 ka:თარგი:Precision1 hu:Sablon:Precision1 mr:साचा:Precision1 pl:Szablon:Dokładność1 pt:Predefinição:Precision1 fi:Malline:Tarkkuus1