Y
Hacker News
new
|
ask
|
show
|
jobs
by
tyweir
5940 days ago
Further, 21 items that cost $55.1 total $1157.1000000000001
4 comments
jfarmer
5940 days ago
Do not, do not, do not use floating-point arithmetic for money.
link
jrockway
5940 days ago
Further, 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!
link
tyweir
5940 days ago
Maybe you expect payment in IP addresses.
link
ataggart
5940 days ago
fp math + money = Superman III
link
pistoriusp
5940 days ago
Oh, thanks.
link