When accepting money online, it is important to be accurate. Just one cent off and your customers may lose trust in your application. That is why it is It is important to understand how Javascript handles decimals.
By default, Javascript does not have a decimal datatype but it does have a Number type, which can be used as an integer or a double precision float. Because it’s a binary representation of a base 10 system, you end up with inaccurate results when you try to do the math. Read More