You can edit almost every page by Creating an account. Otherwise, see the FAQ.

الگو:Sigfig

از EverybodyWiki Bios & Wiki
پرش به:ناوبری، جستجو

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 ۱۲۳٫۴۵۶۰ [۱]
  • {{sigfig|123.456|6}} gives ۱۲۳٫۴۵۶ [۲]
  • {{sigfig|123.456|5}} gives ۱۲۳٫۴۶ [۳]
  • {{sigfig|123.456|4}} gives ۱۲۳٫۵ [۴]
  • {{sigfig|123456|3}} gives ۱۲۳٬۰۰۰ [۵]
  • {{sigfig|12345.6|3}} gives ۱۲٬۳۰۰ [۶]
  • {{sigfig|1234.56|3}} gives ۱٬۲۳۰ [۷]
  • {{sigfig|12.3456|3}} gives ۱۲٫۳ [۸]
  • {{sigfig|1.23456|3}} gives ۱٫۲۳ [۹]
  • {{sigfig|.123456|3}} gives ۰٫۱۲۳ [۱۰]
  • {{sigfig|.0123456|3}} gives ۰٫۰۱۲۳ [۱۱]
  • {{sigfig|.00123456|3}} gives ۰٫۰۰۱۲۳ [۱۲]
  • {{sigfig|123.456|2}} gives ۱۲۰ [۱۳]
  • {{sigfig|123.456|1}} gives ۱۰۰ [۱۴]
  • {{sigfig|123.456|0}} gives ۰ [۱۵]
  • {{sigfig|123400}} → 4 [۱۶]
  • {{sigfig|12340}} → 4 [۱۷]
  • {{sigfig|1234}} → 4 [۱۸]
  • {{sigfig|123.4}} → 4 [۱۹]
  • {{sigfig|12.34}} → 4 [۲۰]
  • {{sigfig|1.234}} → 4 [۲۱]
  • {{sigfig|.1234}} → 3 [۲۲]
  • {{sigfig|.01234}} → 3 [۲۳]
  • {{sigfig|.001234}} → 3 [۲۴]

This template "Sigfig" is from Wikipedia if otherwise notified