core :: Float :: log_base
self
base
assert 100.0.log_base(10.0) == 2.0 assert 256.0.log_base(2.0) == 8.0
# Logarithm of `self` to base `base`. # # assert 100.0.log_base(10.0) == 2.0 # assert 256.0.log_base(2.0) == 8.0 fun log_base(base: Float): Float do return log/base.log