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
It's ~16k minified. We're only using it for consistent rounding. We prefer to serialize cents as JSON Numbers, so we already don't support arbitrarily large numbers. This is not something we will likely ever need to support for a single shopper's flow. Let's keep things simple by preferring Number representations and acknowledging their limitations. Let's add larger libraries for high precision math and arbitrarily large ints only where and once we need them (accounting systems?)
The text was updated successfully, but these errors were encountered:
Also, with integer cents, Math.round() is stable and predictable. Seems like we only need one of BigNumber or integer cents for predictable money math.
It's ~16k minified. We're only using it for consistent rounding. We prefer to serialize cents as JSON Numbers, so we already don't support arbitrarily large numbers. This is not something we will likely ever need to support for a single shopper's flow. Let's keep things simple by preferring Number representations and acknowledging their limitations. Let's add larger libraries for high precision math and arbitrarily large ints only where and once we need them (accounting systems?)
The text was updated successfully, but these errors were encountered: