Template:Sigfig
Jump to navigation
Jump to search
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 of this range.
- If two parameters are given the template rounds the first number to the number of significant figures given by the second.
Examples:
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
- Template:Xpdop3p3c
{{sigfig|123400}}
→ Template:Sigfig/sum [1]{{sigfig|12340}}
→ Template:Sigfig/sum [2]{{sigfig|1234}}
→ Template:Sigfig/sum [3]{{sigfig|123.4}}
→ Template:Sigfig/sum [4]{{sigfig|12.34}}
→ Template:Sigfig/sum [5]{{sigfig|1.234}}
→ Template:Sigfig/sum [6]{{sigfig|.1234}}
→ Template:Sigfig/sum [7]{{sigfig|.01234}}
→ Template:Sigfig/sum [8]{{sigfig|.001234}}
→ Template:Sigfig/sum [9]