• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pure newbie :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Pure newbie :( (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Pure newbie :(
  • Next by Date: Re: NSPopUpButtonCell?
  • Previous by thread: Re: Pure newbie :(
  • Next by thread: Re: Pure newbie :(
  • Index(es):
    • Date
    • Thread