Expand description
LogBase10 and
LogBase10Assign, traits for
computing the base-10 logarithm of Floats.
Functions§
- primitive_
float_ log_ base_ 10 - Computes $\log_{10} x$, the base-10 logarithm of a primitive float. Using this function is more
accurate than using the primitive float
log10function (the standard library’slog10is not always correctly rounded). - primitive_
float_ log_ base_ 10_ rational - Computes $\log_{10} x$, the base-10 logarithm of a
Rational, returning a primitive float result.