As a JavaScript developer, this will always be a recurring caveat that needs proper consideration, especially for applications needing precise calculations.
Have been using a mix of BigNumber and .toFixed() for my needs.
toFixed works well if you only need to handle small decimal places, but for ensuring accuracy for numbers with a lot of decimal places, BigNumber does the job (so far).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As a JavaScript developer, this will always be a recurring caveat that needs proper consideration, especially for applications needing precise calculations.
Have been using a mix of
BigNumberand.toFixed()for my needs.toFixedworks well if you only need to handle small decimal places, but for ensuring accuracy for numbers with a lot of decimal places,BigNumberdoes the job (so far).