Parse a decimal QBT amount, such as qbit Core prints ("1.00000000"), into
bits. At most 8 decimals, no exponent, no sign other than a leading -
when allowNegative is set, and at most MAX_MONEY_BITS in
magnitude. Negative zero ("-0", "-0.00000000") is zero: 0n, with or
without allowNegative. Throws a RangeError otherwise. options is read
by its own properties: an inherited allowNegative is a TypeError.
Parse a decimal QBT amount, such as qbit Core prints (
"1.00000000"), into bits. At most 8 decimals, no exponent, no sign other than a leading-whenallowNegativeis set, and at most MAX_MONEY_BITS in magnitude. Negative zero ("-0","-0.00000000") is zero:0n, with or withoutallowNegative. Throws aRangeErrorotherwise.optionsis read by its own properties: an inheritedallowNegativeis aTypeError.