medium10 pts · first answer countsmathfloating-pointrounding
Why (1.005).toFixed(2) is 1.00
An invoice shows (1.005).toFixed(2) as "1.00" instead of "1.01". Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Remainder of a negative numberBackend Developer
- Why 0.1 + 0.2 is not 0.3Backend Developer
- Storing rupee amounts safelyBackend Developer
- GST inside an inclusive priceBackend Developer
- How many buses are neededBackend Developer
- Checking for a power of twoBackend Developer
- Which year is a leap yearBackend Developer
- Month number in new DateBackend Developer