Convert a DEM amount (human-readable) to an OS amount (smallest unit).
Accepts number or string for ergonomics. The result is always a bigint.
Strings are preferred for high-precision input because JavaScript number
cannot represent every 9-decimal value exactly.
Throws if:
The input has more than OS_DECIMALS fractional digits.
Convert a DEM amount (human-readable) to an OS amount (smallest unit).
Accepts
numberorstringfor ergonomics. The result is always abigint. Strings are preferred for high-precision input because JavaScriptnumbercannot represent every 9-decimal value exactly.Throws if: