logoalt Hacker News

woriklast Saturday at 10:54 PM1 replyview on HN

Never use floats for financial calculations. Because hard won experience.

"Floats" are simulations of Real Numbers, and Reals are uncountable. Not what you want for finance, where everything is counted.


Replies

quibonolast Saturday at 11:25 PM

I suggest reading the comment I was replying to since it contextualises the answer quite well. Hard to find absolutes in real life outside of thermodynamics.