pub fn logb<F>(b: F, x: F) -> Fwhere F: Float,
The logarithm of x to base b, ln x / ln b. Base 2 and base 10 take log2 and log10, which are exact at powers of their base.
log2
log10