You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i.e. when going from 0 to z the precision automatically adapts to the expected numDivisions, whereas it doesn't do so when going from z to 0. I've seen the discussion #7 and the addition of the placesToKeep parameter.
I'm wondering though whether it was possible for the library itself to determine the appropriate precision when using a descending order.
In the meantime I probably will add something along the lines of placesToKeep: Math.round(Math.log(numDivisions) / Math.log(maxBase)) to my code for this special case as it feels like it results in the desired precision. (yzzl for the case above)
The text was updated successfully, but these errors were encountered:
Hi there,
first off, I'm really really amazed by the effort put into this library, especially the README!
I've stumbled across one inconsistency though:
i.e. when going from
0
toz
the precision automatically adapts to the expectednumDivisions
, whereas it doesn't do so when going fromz
to0
. I've seen the discussion #7 and the addition of theplacesToKeep
parameter.I'm wondering though whether it was possible for the library itself to determine the appropriate precision when using a descending order.
In the meantime I probably will add something along the lines of
placesToKeep: Math.round(Math.log(numDivisions) / Math.log(maxBase))
to my code for this special case as it feels like it results in the desired precision. (yzzl
for the case above)The text was updated successfully, but these errors were encountered: