Scales a decimal string to an integer at precision, which is the only exact way to compare two
amounts. undefined when the value is not a decimal or carries more places than precision can
hold, since dropping a digit would silently change the amount.
Reach for validateAmount instead where the caller needs to say what went wrong.
Scales a decimal string to an integer at
precision, which is the only exact way to compare two amounts.undefinedwhen the value is not a decimal or carries more places thanprecisioncan hold, since dropping a digit would silently change the amount.Reach for validateAmount instead where the caller needs to say what went wrong.