This template calculates the (decimal) order of magnitude of numbers within the ranges 10300 to 10−300 and −10−300 to −10300.

The template currently gives 0 for 0. Do not rely on this, however, because this mathematically incorrect result is under review (see talk).

Examples

уреди
  • {{Order of magnitude|123400}} gives 5 [1]
  • {{Order of magnitude|12340}} gives 4 [2]
  • {{Order of magnitude|1234}} gives 3 [3]
  • {{Order of magnitude|123.4}} gives 2 [4]
  • {{Order of magnitude|12.34}} gives 1 [5]
  • {{Order of magnitude|1.234}} gives 0 [6]
  • {{Order of magnitude|.1234}} gives -1 [7]
  • {{Order of magnitude|.01234}} gives -2 [8]
  • {{Order of magnitude|0}} gives 0 [9]
  • {{Order of magnitude|}} gives Грешка во изразот: Неочекуван оператор = [10]
  • {{Order of magnitude}} дава 0 [11]