Simple-JavaScript-Calculator
Simple-JavaScript-Calculator copied to clipboard
JS Floating point number precision issue
There is floating point number precision issue in this calculator which is a problem from the JS. For example: 0.1+0.2=0.30000000000000004 You can round it to 0.3 You can check out this page: https://stackoverflow.com/questions/1458633/how-can-i-deal-with-floating-point-number-precision-in-javascript Other than that, this calculator is absolutely cool! Thank you for your hard work!
0.1 is the error
@Nani-14 What do you mean? Thx
@harsh98trivedi Can you take a look? Thank you so much!