Well known? I had no idea this bug existed until I wrote a line of code that
double-checked the arithmetic from a different app. I have code all over
doing simple arithmetic like this. Ruby can't add 3 simple numbers? I don't
mean to be disproportionately negative, but that shakes my faith more than a
little. It's just simple arithmetic. How old is this bug? When is it
getting fixed?
Sean O'Dell
Sorry, to shake your faith, but consider the following:
jfn@juno 124 /home/jfn/tmp > cat n.c
int main()
{
printf("%.24f\n", 625.91+900.00+22.00);
}
jfn@juno 125 /home/jfn/tmp > ./a.out
1547.909999999999854480847716
You might want to try the rational library.
Jim
--
Jim Freeze
Police: Good evening, are you the host?
Host: No.
Police: We've been getting complaints about this party.
Host: About the drugs?
Police: No.
Host: About the guns, then? Is somebody complaining about the guns?
Police: No, the noise.
Host: Oh, the noise. Well that makes sense because there are no guns
or drugs here. (An enormous explosion is heard in the
background.) Or fireworks. Who's complaining about the noise?
The neighbors?
Police: No, the neighbors fled inland hours ago. Most of the recent
complaints have come from Pittsburgh. Do you think you could
ask the host to quiet things down?
Host: No Problem. (At this point, a Volkswagon bug with primitive
religious symbols drawn on the doors emerges from the living
room and roars down the hall, past the police and onto the
lawn, where it smashes into a tree. Eight guests tumble out
onto the grass, moaning.) See? Things are starting to wind
down.