Asked • 05/14/19

How to solve the issue of round number in JavaScript?

I am having an issue in which if I am entering 9 sixteen times and formatting it using `Math.round(9999999999999999)` and it is becoming `10000000000000000`. Oddly enough, when I run `9999999999999999 == 10000000000000000` it evaluates as true. How do I solve this issue?

1 Expert Answer

By:

Ian M. answered • 05/14/19

Tutor
5.0 (2,509)

JavaScript, Web Application Engineer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.