On Thu, Oct 22, 2015 at 09:27:43PM +0100, Simon Slavin wrote:

> Financial software frequently handles all currency amounts as pence or
> cents for the reasons you've just found out. 

Most financial processing is done on mainframes which have had fixed point
decimal types (in hardware) since the early 1960s. If you use the right
types this problem doesn't happen and about the only thing you have to think
of is rounding properly (for which there is some amount of software
support). But yeah, if you don't have a fixed decimal type and you try to
use floats for money you're gonna get sued eventually. Don't do that...

/jl

-- 
ASCII ribbon campaign ( ) Powered by Lemote Fuloong
 against HTML e-mail   X  Loongson MIPS and OpenBSD
   and proprietary    / \    http://www.mutt.org
     attachments     /   \  Code Blue or Go Home!
 Encrypted email preferred  PGP Key 2048R/DA65BC04 

Reply via email to