Convert a major-unit amount to integer minor units with string math (no float division). toMinor("250.00", "EGP") === 25000, toMinor("1.250", "KWD") === 1250. Throws if the value has more precision than the currency allows (non-zero extra digits).
toMinor("250.00", "EGP") === 25000
toMinor("1.250", "KWD") === 1250
Convert a major-unit amount to integer minor units with string math (no float division).
toMinor("250.00", "EGP") === 25000,toMinor("1.250", "KWD") === 1250. Throws if the value has more precision than the currency allows (non-zero extra digits).