Basics.logBase and am getting a surprising result.
logBase 10 1000 returns
2.9999999999999996. This is problematic for my overall algorithm as I am expecting to be able to use
floor to accurately find how many digit “places” I need. Any way I can get
logBase 10 1000 to return
3 as expected?
On further investigation, this issue appears to affect every value of
x%3 == 0.