pub fn logb<F: Float>(b: F, x: F) -> F
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