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
We need to take the inverse of the input number x in the following two cases:
log2
exp2
That is, when x is negative. The problem is that the inverse limits the precision of the input to maximum 36 decimals, otherwise the result would not fit in the SD59x18/ UD60x18 fixed-point representation.
One way to make this better is to increase the precision that is used internally within PRBMath, similarly to how DSMath uses RAY internally (which has 27 decimals of precision) and WAD externally (which has 18 decimals of precision).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We need to take the inverse of the input number x in the following two cases:
That is, when x is negative. The problem is that the inverse limits the precision of the input to maximum 36 decimals, otherwise the result would not fit in the SD59x18/ UD60x18 fixed-point representation.
One way to make this better is to increase the precision that is used internally within PRBMath, similarly to how DSMath uses RAY internally (which has 27 decimals of precision) and WAD externally (which has 18 decimals of precision).
Beta Was this translation helpful? Give feedback.
All reactions