Template:Significant figures: Difference between revisions
m>Patrick (Examples) |
m>Patrick (more examples) |
||
Line 8: | Line 8: | ||
*{{xpdop3p3c|d=|sigfig|123.456|||5}} | *{{xpdop3p3c|d=|sigfig|123.456|||5}} | ||
*{{xpdop3p3c|d=|sigfig|123.456|||4}} | *{{xpdop3p3c|d=|sigfig|123.456|||4}} | ||
*{{xpdop3p3c|d=|sigfig| | |||
*{{xpdop3p3c|d=|sigfig|123456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|12345.6|||3}} | |||
*{{xpdop3p3c|d=|sigfig|1234.56|||3}} | |||
*{{xpdop3p3c|d=|sigfig|12.3456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|1.23456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|.123456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|.0123456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|.00123456|||3}} | |||
*{{xpdop3p3c|d=|sigfig|123.456|||2}} | *{{xpdop3p3c|d=|sigfig|123.456|||2}} | ||
*{{xpdop3p3c|d=|sigfig|123.456|||1}} | *{{xpdop3p3c|d=|sigfig|123.456|||1}} |
Revision as of 09:30, 29 August 2010
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