ਫਰਮਾ:Significant figures/doc
ਇਹ ਇੱਕ ਫਰਮਾ:Significant figures ਲਈ documentation ਉਪ ਸਫ਼ਾ ਹੈ। ਇਸ ਵਿੱਚ ਵਰਤੋਂ ਦੀ ਜਾਣਕਾਰੀ, ਸ਼੍ਰੇਣੀਆਂ ਅਤੇ ਹੋਰ ਸਮੱਗਰੀ ਜੋ ਮੂਲ ਦਾ ਹਿੱਸਾ ਨਹੀਂ ਹੈ, ਸ਼ਾਮਲ ਹੈ। ਫਰਮਾ page. |
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}}
{{significant figures|123.456|6}}
{{significant figures|123.456|5}}
{{significant figures|123.456|4}}
{{significant figures|123,456|3}}
{{significant figures|12345.6|3}}
{{significant figures|1234.56|3}}
{{significant figures|12.3456|3}}
{{significant figures|1.23456|3}}
{{significant figures|.123456|3}}
{{significant figures|.0123456|3}}
{{significant figures|.00123456|3}}
{{significant figures|0.123456|3}}
{{significant figures|0.0123456|3}}
{{significant figures|0.00123456|3}}
{{significant figures|123.456|2}}
{{significant figures|123.456|1}}
{{significant figures|123.456|0}}
{{significant figures|987654321|9}}
{{significant figures|987654321|8}}
{{significant figures|987654321|7}}
{{significant figures|987654321|6}}
{{significant figures|987654321|5}}
{{significant figures|987654321|4}}
{{significant figures|987654321|3}}
{{significant figures|987654321|2}}
{{significant figures|987654321|1}}
One parameter
ਸੋਧੋ{{significant figures|123400}}
{{significant figures|12340}}
{{significant figures|1234}}
{{significant figures|123.4}}
{{significant figures|12.34}}
{{significant figures|1.234}}
{{significant figures|0.1234}}
{{significant figures|0.01234}}
{{significant figures|0.001234}}
{{significant figures|.1234}}
{{significant figures|.01234}}
{{significant figures|.001234}}
{{significant figures|-123.4}}
{{significant figures|-12.34}}
{{significant figures|-1.234}}
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}}