Template:Order of magnitude

This template calculates the (decimal) order of magnitude of numbers within the ranges 1066 to 10-66 and -10-66 to -1066.

Note, this macro will currently underflow on zero, causing an error message to be returned instead of the value 0 (zero).