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
In roundingContext you're optimizing an allocation away by returning a preallocated context that extends apd.BaseContext if the rounding mode is set to RoundHalfUp. See here.
Unfortunately, the default rounding mode used by apd.BaseContext is RoundDown, not RoundHalfUp, so the context configuration is, I believe, wrong. Given that I have not explicitly tested this, maybe I'm missing something, so please close this if that's the case.
The text was updated successfully, but these errors were encountered:
In
roundingContext
you're optimizing an allocation away by returning a preallocated context that extendsapd.BaseContext
if the rounding mode is set toRoundHalfUp
. See here.Unfortunately, the default rounding mode used by
apd.BaseContext
isRoundDown
, notRoundHalfUp
, so the context configuration is, I believe, wrong. Given that I have not explicitly tested this, maybe I'm missing something, so please close this if that's the case.The text was updated successfully, but these errors were encountered: