Àdàkọ:Oom/doc

Lát'ọwọ́ Wikipedia, ìwé ìmọ̀ ọ̀fẹ́

This template returns the order of magnitude of a number, in the sense of the number of digits before the point, within the range 0 through 16.

Examples[àtúnṣe àmìọ̀rọ̀]

  • {{oom|1.234e100}} → 16 [1]
  • {{oom|1.234e20}} → 16 [2]
  • {{oom|123456}} → 6 [3]
  • {{oom|12345}} → 5 [4]
  • {{oom|1234}} → 4 [5]
  • {{oom|123.4}} → 3 [6]
  • {{oom|12.34}} → 2 [7]
  • {{oom|1.234}} → 1 [8]
  • {{oom|.1234}} → 0 [9]
  • {{oom|.01234}} → 0 [10]
  • {{oom|0}} → 0 [11]
  • {{oom|}}Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Kò sí àmì-ìsirò fún >=. [12]
  • {{oom}} gives Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "{". [13]

Compare Template:Ordomag:

  • {{ordomag|1234e100}} → 103 [14]
  • {{ordomag|1234e20}} → 23 [15]
  • {{ordomag|123456}} → 5 [16]
  • {{ordomag|12345}} → 4 [17]
  • {{ordomag|1234}} → 3 [18]
  • {{ordomag|123.4}} → 2 [19]
  • {{ordomag|12.34}} → 1 [20]
  • {{ordomag|1.234}} → 0 [21]
  • {{ordomag|.1234}} → -1 [22]
  • {{ordomag|.01234}} → -2 [23]
  • {{ordomag|0}}Àsìṣe ìgbékalẹ̀ọ̀rọ̀: àmì-ìṣírò < àìretí [24]
  • {{ordomag|}}Àsìṣe ìgbékalẹ̀ọ̀rọ̀: àmì-ìṣírò < àìretí [25]
  • {{ordomag}} gives Àsìṣe ìgbékalẹ̀ọ̀rọ̀: àmì-ìṣírò < àìretí [26]