Convert a major-unit amount to an integer count of minor units (centimes).
This is the single conversion point for all caller amounts. Bypassing it
(e.g. computing amount * 100 directly) would reintroduce the IEEE-754
silent-rounding vulnerability fixed by the relative-epsilon precision check.
Parameters
amount: number
Returns number
Throws
Error when amount is not a finite positive number.
Convert a major-unit amount to an integer count of minor units (centimes).
This is the single conversion point for all caller amounts. Bypassing it (e.g. computing
amount * 100directly) would reintroduce the IEEE-754 silent-rounding vulnerability fixed by the relative-epsilon precision check.