Re: Rounding double
In article <NQB2j.14278$Mg 1.2787@trndny03 James Kuyper <jameskuyper@ve rizon.netwrites :
....
>
The original problem as stated was, IMO, probably not intended to be
read with the unconventionall y strict interpretation you're using. I
believe that Jacob is correctly describing the problem as clearly
expressed by the OP.
I do not think so. I have seen too many articles posted in this newsgroup
asking why (when 0.33333333 is rounded to two decimals), the result is
printed as 0.3299999999, and not as 0.33000000 (or something similar) ...
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
In article <NQB2j.14278$Mg 1.2787@trndny03 James Kuyper <jameskuyper@ve rizon.netwrites :
Richard Heathfield wrote:
No, I'm only asserting that the original problem, as stated, is impossible
to solve.
to solve.
The original problem as stated was, IMO, probably not intended to be
read with the unconventionall y strict interpretation you're using. I
believe that Jacob is correctly describing the problem as clearly
expressed by the OP.
asking why (when 0.33333333 is rounded to two decimals), the result is
printed as 0.3299999999, and not as 0.33000000 (or something similar) ...
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Comment