Convert a plain decimal string to atoms without floating point or rounding. Zero is allowed; quotes require a positive amount. Extra decimal places, exponent notation and whitespace fail.
`parseAmount('1.25', 9)` returns `'1250000000'`. Copy
`parseAmount('1.25', 9)` returns `'1250000000'`.
Convert a plain decimal string to atoms without floating point or rounding. Zero is allowed; quotes require a positive amount. Extra decimal places, exponent notation and whitespace fail.