Hacker News new | ask | show | jobs
by chrisseaton 2043 days ago
Everyone says that 'banks never use floating point to represent money'... but when you talk to people actually working in banks and other financial institutions and actually look at their code turns out they're using floating point all over the place.
1 comments

I can tell you for a fact that at least one large data vendor uses floating point almost exclusively internally :-)

The thing is, it's actually 'fine' until you actually need to do a calculation. Once you get there you need to convert to decimal and round to however many dp's you should be using.