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