Is there any library that implements an efficient log10floor
function in Python?
Python has accuracy problems for large numbers, but if one simply rounds a logarithm to its floor, then it's possible to have a very simple implementation. I'd rather not code my own, so I'm looking for one.
As an example for Java, Guava implements a very fast log10
function when you want to round to floor.