Re: Pure newbie :(
Re: Pure newbie :(
- Subject: Re: Pure newbie :(
- From: Troy Dawson <email@hidden>
- Date: Tue, 11 Nov 2003 13:33:30 -0800
On Nov 11, 2003, at 11:54 AM, David Blanton wrote:
On 11/11/03 12:07 PM, "Tony S. Wu" <email@hidden> wrote:
try using double.
never compare two floats.
Why never compare two floats?
I'm no numerics expert, but I think two floats aren't any less
reliable, philosophically, than two doubles.
changing the literal to 0.400000f forces it to float and the comparison
evaluates as expected.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.