logscale.order_of_magnitude
Module defining a function to compute the order of magnitude of a number.
order_of_magnitude
order_of_magnitude(x: float) -> str
Return a string representing the order of magnitude of a number.
The order of magnitude is the exponent of 10 such that the coefficient (mantissa)
is between 1/sqrt(10) and sqrt(10).
The result is formatted as '
Source code in src/logscale/order_of_magnitude.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |