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
Hey there! I found some values for which rpow has a pretty large error, and I was wondering if that's expected? Unlike powWad, this function does not document that it's imprecise.
For example:
// res = 990049833743622642uint256 res = FixedPointMathLib.rpow(999999999999999999, 1e16, 1e18);
The error is about 5545412 compared to the true value 990049833749168054 (rounded to nearest).
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there! I found some values for which
rpowhas a pretty large error, and I was wondering if that's expected? UnlikepowWad, this function does not document that it's imprecise.For example:
The error is about
5545412compared to the true value990049833749168054(rounded to nearest).If that's unexpected, I can open an issue.
Beta Was this translation helpful? Give feedback.
All reactions