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 1012 to 10-12 and -10-12 to -1012. It ignores any digits outside of this range.
  2. If two parameters are given the template rounds the first number to the number of significant figures given by the second.

Two parameters

संपादन




  • {{significant figures|123400}} → 4 [२८]
  • {{significant figures|12340}} → 4 [२९]
  • {{significant figures|1234}} → 4 [३०]
  • {{significant figures|123.4}} → 4 [३१]
  • {{significant figures|12.34}} → 4 [३२]
  • {{significant figures|1.234}} → 4 [३३]

  • {{significant figures|0.1234}} → 4 [३४]
  • {{significant figures|0.01234}} → 4 [३५]
  • {{significant figures|0.001234}} → 4 [३६]
  • {{significant figures|.1234}} → 4 [३७]
  • {{significant figures|.01234}} → 4 [३८]
  • {{significant figures|.001234}} → 4 [३९]

  • {{significant figures|-123.4}} → 4 [४०]
  • {{significant figures|-12.34}} → 4 [४१]
  • {{significant figures|-1.234}} → 4 [४२]