سانچو:Sigfig
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 سانچو:Significant figures [1]{{significant figures|123.456|6}}
gives سانچو:Significant figures [2]{{significant figures|123.456|5}}
gives سانچو:Significant figures [3]{{significant figures|123.456|4}}
gives سانچو:Significant figures [4]
{{significant figures|123,456|3}}
gives سانچو:Significant figures [5]{{significant figures|12345.6|3}}
gives سانچو:Significant figures [6]{{significant figures|1234.56|3}}
gives سانچو:Significant figures [7]{{significant figures|12.3456|3}}
gives سانچو:Significant figures [8]{{significant figures|1.23456|3}}
gives سانچو:Significant figures [9]
{{significant figures|.123456|3}}
gives سانچو:Significant figures [10]{{significant figures|.0123456|3}}
gives سانچو:Significant figures [11]{{significant figures|.00123456|3}}
gives سانچو:Significant figures [12]{{significant figures|0.123456|3}}
gives سانچو:Significant figures [13]{{significant figures|0.0123456|3}}
gives سانچو:Significant figures [14]{{significant figures|0.00123456|3}}
gives سانچو:Significant figures [15]
{{significant figures|123.456|2}}
gives سانچو:Significant figures [16]{{significant figures|123.456|1}}
gives سانچو:Significant figures [17]{{significant figures|123.456|0}}
gives سانچو:Significant figures [18]
{{significant figures|987654321|9}}
gives سانچو:Significant figures [19]{{significant figures|987654321|8}}
gives سانچو:Significant figures [20]{{significant figures|987654321|7}}
gives سانچو:Significant figures [21]{{significant figures|987654321|6}}
gives سانچو:Significant figures [22]{{significant figures|987654321|5}}
gives سانچو:Significant figures [23]{{significant figures|987654321|4}}
gives سانچو:Significant figures [24]{{significant figures|987654321|3}}
gives سانچو:Significant figures [25]{{significant figures|987654321|2}}
gives سانچو:Significant figures [26]{{significant figures|987654321|1}}
gives سانچو:Significant figures [27]
One parameter
سنواريو{{significant figures|123400}}
→ سانچو:Significant figures [28]{{significant figures|12340}}
→ سانچو:Significant figures [29]{{significant figures|1234}}
→ سانچو:Significant figures [30]{{significant figures|123.4}}
→ سانچو:Significant figures [31]{{significant figures|12.34}}
→ سانچو:Significant figures [32]{{significant figures|1.234}}
→ سانچو:Significant figures [33]
{{significant figures|0.1234}}
→ سانچو:Significant figures [34]{{significant figures|0.01234}}
→ سانچو:Significant figures [35]{{significant figures|0.001234}}
→ سانچو:Significant figures [36]{{significant figures|.1234}}
→ سانچو:Significant figures [37]{{significant figures|.01234}}
→ سانچو:Significant figures [38]{{significant figures|.001234}}
→ سانچو:Significant figures [39]
{{significant figures|-123.4}}
→ سانچو:Significant figures [40]{{significant figures|-12.34}}
→ سانچو:Significant figures [41]{{significant figures|-1.234}}
→ سانچو:Significant figures [42]
مٿي ڏنل دستاويز صفحو سانچو:Sigfig/دستاويز سان شامل ڪئي ويئي آهي۔ (سنواريو | تاريخچو) يوزر سانچي جي ريتخانو (تخليق | آئينو) ۽ ثابتات (تخليق) ۾ تجربا ڪري سگهن ٿا۔ براه ڪرم /دستاويز جي هيٺين صفحي تي زمرا شامل فرمايو۔ هن سانچو جا هيٺيان صفحا۔ |