Upper bound where the relative-epsilon precision check remains sound.
Inputs above this are rejected by toMinorUnits outright.
The numeric value (9_999_999_999.99) is chosen so that amount * 100
fits comfortably within Number.MAX_SAFE_INTEGER (~9.007e15) with
room for the relative-epsilon tolerance to detect sub-centime inputs.
Upper bound where the relative-epsilon precision check remains sound. Inputs above this are rejected by toMinorUnits outright.
The numeric value (
9_999_999_999.99) is chosen so thatamount * 100fits comfortably withinNumber.MAX_SAFE_INTEGER(~9.007e15) with room for the relative-epsilon tolerance to detect sub-centime inputs.