4 ms·
Having 1 item with a price tag of $10.50 will display a total of $10.5. I'd have expected $10.50 :)
by bartman 16y ago
Having 1 item with a price tag of $10.50 will display a total of $10.5. I'd have expected $10.50 :)
- tyweir 16y agoFurther, 21 items that cost $55.1 total $1157.1000000000001
- jrockway 16y agoFurther, the validation for the price field lets you type in prices like "1.2.3.4", which is confusingly invalid. Who needs tests when you have HN!
- tyweir 16y agoMaybe you expect payment in IP addresses.
- deleted 16y ago[deleted]
- ataggart 16y agofp math + money = Superman III
- jfarmer 16y agoDo not, do not, do not use floating-point arithmetic for money.
- pistoriusp 16y agoOh, thanks.