Ta̱mpi̱let:Significant figures
Li
0
This template has two different functions dependent on input.
- If only one parameter is given the template counts the number of significant figures of the given number within the ranges 10 12 to 10 - 12 </ sup> and - 10 - 12 to - 10 12 . It ignores any digits outside this range .
- If two parameters are given the template rounds the first number to the number of significant figures given by the second.
Examples
[jhyuk a̱tyin ka]Two parameters
[jhyuk a̱tyin ka]{{significant figures|123.456|7}}
→ Formatting error: invalid input when rounding{{significant figures|123.456|6}}
→ Formatting error: invalid input when rounding{{significant figures|123.456|5}}
→ Formatting error: invalid input when rounding{{significant figures|123.456|4}}
→ Formatting error: invalid input when rounding
- - - -
{{significant figures|123,456|3}}
→ Formatting error: invalid input when rounding{{significant figures|12345.6|3}}
→ Formatting error: invalid input when rounding{{significant figures|1234.56|3}}
→ Formatting error: invalid input when rounding{{significant figures|12.3456|3}}
→ Formatting error: invalid input when rounding{{significant figures|1.23456|3}}
→ Formatting error: invalid input when rounding
{{significant figures|.123456|3}}
→ Formatting error: invalid input when rounding{{significant figures|.0123456|3}}
→ Formatting error: invalid input when rounding{{significant figures|.00123456|3}}
→ Formatting error: invalid input when rounding{{significant figures|0.123456|3}}
→ Formatting error: invalid input when rounding{{significant figures|0.0123456|3}}
→ Formatting error: invalid input when rounding{{significant figures|0.00123456|3}}
→ Formatting error: invalid input when rounding
{{significant figures|123.456|2}}
→ Formatting error: invalid input when rounding{{significant figures|123.456|1}}
→ Formatting error: invalid input when rounding{{significant figures|123.456|0}}
→ Formatting error: invalid input when rounding
{{significant figures|987654321|9}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|8}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|7}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|6}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|5}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|4}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|3}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|2}}
→ Formatting error: invalid input when rounding{{significant figures|987654321|1}}
→ Formatting error: invalid input when rounding
One parameter
[jhyuk a̱tyin ka]{{significant figures|123400}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|12340}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|1234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|123.4}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|12.34}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|1.234}}
→ Ta̱mpi̱let:Significant figures/sum
{{significant figures|0.1234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|0.01234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|0.001234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|.1234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|.01234}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|.001234}}
→ Ta̱mpi̱let:Significant figures/sum
- - - -
{{significant figures|- 123.4}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|- 12.34}}
→ Ta̱mpi̱let:Significant figures/sum{{significant figures|- 1.234}}
→ Ta̱mpi̱let:Significant figures/sum
Supporting templates and modules
[jhyuk a̱tyin ka]- {{ Significant figures/rnd }} , which uses {{ Rnd }} , which uses Ta̱mpi̱let:Module link
- {{ Significant figures/sum }} , which uses {{ Precision }} , which uses Ta̱mpi̱let:Module link
- {{ Order of magnitude }}