1 Mar
2008
1 Mar
'08
8:16 a.m.
Robert Kindred wrote:
Just a quick reply: Is there any plans to include efficient comparison (equality) of floating point numbers? I could not find anything related in the library docs.
Hermann O. Rodrigues No.
--Johan
I would like to second this motion, as there are many pitfalls in doing this manually. Here is a link I found on the pitfalls involved and ways to solve them:
http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
Robert Kindred
Why don't you write code for this and submit to Boost? --Johan