Thanks for the answer. I guess the correct technique would be to define an "equality" function with a tolerance within 1e-08. I guess I should head over to the TDLP errata section and point out that the example code needs to be fixed to allow for this possibility.
- Comparing double and float values Abid H. Mujtaba
- Re: Comparing double and float values Alexander
- Re: Comparing double and float values Matthew Ong
- Re: Comparing double and float values Jens Mueller
- Re: Comparing double and float values Matthew Ong
- Re: Comparing double and float values Alexander
- Re: Comparing double and float values Matthew Ong
- Re: Comparing double and float values Don
- Re: Comparing double and float values Matthew Ong
- Re: Comparing double and float values Abid H. Mujtaba
- Re: Comparing double and float values Andrei Alexandrescu
- Re: Comparing double and float values Abid H. Mujtaba
- Re: Comparing double and float v... Andrei Alexandrescu
- Re: Comparing double and float values Andrei Alexandrescu
- Re: Comparing double and float values bearophile
- Re: Comparing double and float v... Abid H. Mujtaba
