FANDOM


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.

Examples:

  • {{sigfig|123.456|7}} gives 123.4560 [1]
  • {{sigfig|123.456|6}} gives 123.456 [2]
  • {{sigfig|123.456|5}} gives 123.46 [3]
  • {{sigfig|123.456|4}} gives 123.5 [4]
  • {{sigfig|123456|3}} gives 123,000 [5]
  • {{sigfig|12345.6|3}} gives 12,300 [6]
  • {{sigfig|1234.56|3}} gives 1,230 [7]
  • {{sigfig|12.3456|3}} gives 12.3 [8]
  • {{sigfig|1.23456|3}} gives 1.23 [9]
  • {{sigfig|.123456|3}} gives 0.123 [10]
  • {{sigfig|.0123456|3}} gives 0.0123 [11]
  • {{sigfig|.00123456|3}} gives 0.00123 [12]
  • {{sigfig|123.456|2}} gives 120 [13]
  • {{sigfig|123.456|1}} gives 100 [14]
  • {{sigfig|123.456|0}} gives 0 [15]
  • {{sigfig|123400}} gives 4 [16]
  • {{sigfig|12340}} gives 4 [17]
  • {{sigfig|1234}} gives 4 [18]
  • {{sigfig|123.4}} gives 4 [19]
  • {{sigfig|12.34}} gives 4 [20]
  • {{sigfig|1.234}} gives 4 [21]
  • {{sigfig|.1234}} gives 4 [22]
  • {{sigfig|.01234}} gives 4 [23]
  • {{sigfig|.001234}} gives 4 [24]
Community content is available under CC-BY-SA unless otherwise noted.