From: Aredridel Date: 2004-05-13T04:25:40+09:00 Subject: Re: Major Addition Bug? > I'm not sure how well known this is. Is it well known as being a problem > or well known as in "you should never do this sort of thing". > > Seems to present a major problem if you want to deal with financial > figures, for example. Are there any workarounds? Short answer: use rational numbers -- slower, but works. Long answer: For finance, specifically, use integer numbers of pennies, at least for US currency, or some other fixed-point format. It has error, but it's an accepted, standard error. According to most accountants, 0.005 + 0.044 is 0.05. Ari