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}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|123.456|6}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|123.456|5}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|123.456|4}}
→ Ta̱mpi̱let:Significant figures/rnd
- - - -
{{significant figures|123,456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|12345.6|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|1234.56|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|12.3456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|1.23456|3}}
→ Ta̱mpi̱let:Significant figures/rnd
{{significant figures|.123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|.0123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|.00123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|0.123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|0.0123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|0.00123456|3}}
→ Ta̱mpi̱let:Significant figures/rnd
{{significant figures|123.456|2}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|123.456|1}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|123.456|0}}
→ Ta̱mpi̱let:Significant figures/rnd
{{significant figures|987654321|9}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|8}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|7}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|6}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|5}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|4}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|3}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|2}}
→ Ta̱mpi̱let:Significant figures/rnd{{significant figures|987654321|1}}
→ Ta̱mpi̱let:Significant figures/rnd
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 }}