25 Feb
2006
25 Feb
'06
8:12 p.m.
yinglcs2@yahoo.com wrote:
You mention "be careful with literal floating point comparisons in general.". I thought doing float point == comparision is bad. But I am just doing less than (<), so i am okay. Is that true?
Depends. If you don't mind d < 0.05 being true sometimes when d ~= 0.05 then you don't have a problem. Just like with == comparison, your literal double value may not be represented as the exact literal value. KevinH -- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com