Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
TeMPOraL
6y ago
0 comments
Save
Share
There's very little point in storing money in floats if you're not going to do arithmetic in floats; about the only use case I can think of is JavaScript and JSON APIs.
0 comments
1 comments · 1 top-level
top
newest
oldest
pushrax
6y ago
Aside from the cases you mentioned, there are other dynamic languages in which numbers are by default floating point. e.g. Lua. I agree though.
j
/
k
navigate · click thread line to collapse