From: ptkwt@... (Phil Tomson) Date: 2004-05-13T03:38:52+09:00 Subject: Re: Major Addition Bug? In article , Phil Tomson wrote: >In article <200405121653.i4CGrEm04797@moulon.inra.fr>, >ts wrote: >>>>>>> "S" == Sean O'Dell writes: >> >>S> raise "false" if ((625.91 + 900.00 + 22.00) != 1547.91) >> >> Well, this is well known >> > >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? Sorry to respond to my own post: Probably the easiest workaround is not to use '==' or '!=' to compare floating point numbers. Use '>','<' instead. Or round off. Maybe mathn does what you need it to do. Phil