fn power(q: i32) -> i32
🔬This is a nightly-only experimental API. (
dec2flt
)Expand description
Calculate a base 2 exponent from a decimal exponent. This uses a pre-computed integer approximation for log2(10), where 217706 / 2^16 is accurate for the entire range of non-finite decimal exponents.