ទំព័រគំរូ:Significant figures
Appearance
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 1012 to 10−១២ and −១០−១២ to −១០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
[កែប្រែ]Two parameters
[កែប្រែ]- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
- ទំព័រគំរូ:Xpdop3p3c
One parameter
[កែប្រែ]{{significant figures|123400}}
→ ទំព័រគំរូ:Significant figures/sum [១]{{significant figures|12340}}
→ ទំព័រគំរូ:Significant figures/sum [២]{{significant figures|1234}}
→ ទំព័រគំរូ:Significant figures/sum [៣]{{significant figures|123.4}}
→ ទំព័រគំរូ:Significant figures/sum [៤]{{significant figures|12.34}}
→ ទំព័រគំរូ:Significant figures/sum [៥]{{significant figures|1.234}}
→ ទំព័រគំរូ:Significant figures/sum [៦]
{{significant figures|0.1234}}
→ ទំព័រគំរូ:Significant figures/sum [៧]{{significant figures|0.01234}}
→ ទំព័រគំរូ:Significant figures/sum [៨]{{significant figures|0.001234}}
→ ទំព័រគំរូ:Significant figures/sum [៩]{{significant figures|.1234}}
→ ទំព័រគំរូ:Significant figures/sum [១០]{{significant figures|.01234}}
→ ទំព័រគំរូ:Significant figures/sum [១១]{{significant figures|.001234}}
→ ទំព័រគំរូ:Significant figures/sum [១២]
{{significant figures|-123.4}}
→ ទំព័រគំរូ:Significant figures/sum [១៣]{{significant figures|-12.34}}
→ ទំព័រគំរូ:Significant figures/sum [១៤]{{significant figures|-1.234}}
→ ទំព័រគំរូ:Significant figures/sum [១៥]
Supporting templates and modules
[កែប្រែ]- {{Significant figures/rnd}}, which uses {{Rnd}}, which uses ទំព័រគំរូ:M2
- {{Significant figures/sum}}, which uses {{Precision}}, which uses ទំព័រគំរូ:M2
- {{Order of magnitude}}