in reply to Multiplication problem
As other posters have said, floating point is fraught with peril (see "What Every Computer Scientist Should Know About Floating-Point Arithmetic". Conversely, your examples are only four significant figures, and nowhere near the extremes that can be represented in doubles, so it's not unreasonable to expect the right answer.
|
|---|