powered by
Base 2 logarithm and floating-point number dissection
log2(X, dissect = TRUE)
either a vector or a list of mantissas and exponents such that mantissa * 2 ^ exponent equals X
a scalar or vector of numbers
if TRUE, returns the mantissa and exponent.
TRUE
log2(10, dissect = FALSE) log2(10) .625 * 2 ^ 4 == 10 # proof
Run the code above in your browser using DataLab