Removes potential floating point noise from input amount beyond given decimal level denoise(9.535695950000001, 9) -> 9.535695950
The string or number to denoise
The number of decimals for the token this amount is of
A number, with no floating point noise
Generated using TypeDoc
Removes potential floating point noise from input amount beyond given decimal level denoise(9.535695950000001, 9) -> 9.535695950