ଛାଞ୍ଚ:Significant figures
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−12 and -10−12 to -1012. 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
ସମ୍ପାଦନା{{significant figures|123.456|7}}
gives ୧୨୩.୪୫୬0 [୧]{{significant figures|123.456|6}}
gives ୧୨୩.୪୫୬ [୨]{{significant figures|123.456|5}}
gives ୧୨୩.୪୬ [୩]{{significant figures|123.456|4}}
gives ୧୨୩.୫ [୪]
{{significant figures|123,456|3}}
gives ୧,୨୩,୦୦୦ [୫]{{significant figures|12345.6|3}}
gives ୧୨,୩୦୦ [୬]{{significant figures|1234.56|3}}
gives ୧,୨୩୦ [୭]{{significant figures|12.3456|3}}
gives ୧୨.୩ [୮]{{significant figures|1.23456|3}}
gives ୧.୨୩ [୯]
{{significant figures|.123456|3}}
gives ୦.୧୨୩ [୧୦]{{significant figures|.0123456|3}}
gives ୦.୦୧୨୩ [୧୧]{{significant figures|.00123456|3}}
gives ୦.୦୦୧୨୩ [୧୨]{{significant figures|0.123456|3}}
gives ୦.୧୨୩ [୧୩]{{significant figures|0.0123456|3}}
gives ୦.୦୧୨୩ [୧୪]{{significant figures|0.00123456|3}}
gives ୦.୦୦୧୨୩ [୧୫]
{{significant figures|123.456|2}}
gives ୧୨୦ [୧୬]{{significant figures|123.456|1}}
gives ୧୦୦ [୧୭]{{significant figures|123.456|0}}
gives ୦ [୧୮]
{{significant figures|987654321|9}}
gives ୯୮,୭୬,୫୪,୩୨୧ [୧୯]{{significant figures|987654321|8}}
gives ୯୮,୭୬,୫୪,୩୨୦ [୨୦]{{significant figures|987654321|7}}
gives ୯୮,୭୬,୫୪,୩୦୦ [୨୧]{{significant figures|987654321|6}}
gives ୯୮,୭୬,୫୪,୦୦୦ [୨୨]{{significant figures|987654321|5}}
gives ୯୮,୭୬,୫୦,୦୦୦ [୨୩]{{significant figures|987654321|4}}
gives ୯୮,୭୭,୦୦,୦୦୦ [୨୪]{{significant figures|987654321|3}}
gives ୯୮,୮୦,୦୦,୦୦୦ [୨୫]{{significant figures|987654321|2}}
gives ୯୯,୦୦,୦୦,୦୦୦ [୨୬]{{significant figures|987654321|1}}
gives ୧,୦୦,୦୦,୦୦,୦୦୦ [୨୭]
One parameter
ସମ୍ପାଦନା{{significant figures|123400}}
→ 4 [୨୮]{{significant figures|12340}}
→ 4 [୨୯]{{significant figures|1234}}
→ 4 [୩୦]{{significant figures|123.4}}
→ 4 [୩୧]{{significant figures|12.34}}
→ 4 [୩୨]{{significant figures|1.234}}
→ 4 [୩୩]
{{significant figures|0.1234}}
→ 4 [୩୪]{{significant figures|0.01234}}
→ 4 [୩୫]{{significant figures|0.001234}}
→ 4 [୩୬]{{significant figures|.1234}}
→ 4 [୩୭]{{significant figures|.01234}}
→ 4 [୩୮]{{significant figures|.001234}}
→ 4 [୩୯]
{{significant figures|-123.4}}
→ 4 [୪୦]{{significant figures|-12.34}}
→ 4 [୪୧]{{significant figures|-1.234}}
→ 4 [୪୨]
Supporting templates and modules
ସମ୍ପାଦନା- {{Significant figures/rnd}}, which uses {{Rnd}}, which uses {{#invoke:Math|precision_format}}
- {{Significant figures/sum}}, which uses {{Precision}}, which uses {{#invoke:Math|precision}}
- {{Order of magnitude}}