Template:Order of magnitude
From Mises Wiki, the global repository of classical-liberal thought
(Redirected from Template:Ordomag)
0
Usage
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 Expression error: Unexpected = operator. [10]{{Order of magnitude}}
gives 0 [11]
The above documentation is transcluded from Template:Order of magnitude/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |