Ta‌̱mpi‌̱let:High - use

This template has two different functions dependent on input.

  1. If only one parameter is given the template counts the number of significant figures of the given number within the ranges 10 12 to 10 - 12 </ sup> and - 10 - 12 to - 10 12 . It ignores any digits outside this range .
  2. If two parameters are given the template rounds the first number to the number of significant figures given by the second.

Examples

jhyuk

Two parameters

jhyuk
  • {{significant figures|123.456|7}}Formatting error: invalid input when rounding
  • {{significant figures|123.456|6}}Formatting error: invalid input when rounding
  • {{significant figures|123.456|5}}Formatting error: invalid input when rounding
  • {{significant figures|123.456|4}}Formatting error: invalid input when rounding

- - - -

  • {{significant figures|123,456|3}}Formatting error: invalid input when rounding
  • {{significant figures|12345.6|3}}Formatting error: invalid input when rounding
  • {{significant figures|1234.56|3}}Formatting error: invalid input when rounding
  • {{significant figures|12.3456|3}}Formatting error: invalid input when rounding
  • {{significant figures|1.23456|3}}Formatting error: invalid input when rounding

  • {{significant figures|.123456|3}}Formatting error: invalid input when rounding
  • {{significant figures|.0123456|3}}Formatting error: invalid input when rounding
  • {{significant figures|.00123456|3}}Formatting error: invalid input when rounding
  • {{significant figures|0.123456|3}}Formatting error: invalid input when rounding
  • {{significant figures|0.0123456|3}}Formatting error: invalid input when rounding
  • {{significant figures|0.00123456|3}}Formatting error: invalid input when rounding

  • {{significant figures|123.456|2}}Formatting error: invalid input when rounding
  • {{significant figures|123.456|1}}Formatting error: invalid input when rounding
  • {{significant figures|123.456|0}}Formatting error: invalid input when rounding

  • {{significant figures|987654321|9}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|8}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|7}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|6}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|5}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|4}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|3}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|2}}Formatting error: invalid input when rounding
  • {{significant figures|987654321|1}}Formatting error: invalid input when rounding

One parameter

jhyuk

- - - -

Supporting templates and modules

jhyuk