hi, i can’t solve the last javascript project because the decimal numbers are incorrect…
//for example:
console.log(0.03 + 0.253)
//output = 0.28300000000000003
hi, i can’t solve the last javascript project because the decimal numbers are incorrect…
//for example:
console.log(0.03 + 0.253)
//output = 0.28300000000000003
What have you tried so far when dealing with this?
Another link
I am guessing that you are doing the cash register project.
I would either use on integer number of cents or look at the toFixed method.
I used the toFixed method and I finally solve it…thanks!
I’ll see it later thank you!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.