Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's the point of saying that it is "very well suited to all applications that are concerned with money" and then write 3.6028797018963967E+143, which is obviously missing a few gigamultiplujillion.


No point whatsoever. If you have to deal with money you never use floating point. Either use arbitrary precision, or integers with a sufficiently small base like blockchains do (which can be also though of as fixed point). Also you would never be multiplying two money value (there are no "square dollars").




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: