• 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: David Blanton <email@hidden>
  • Date: Tue, 11 Nov 2003 12:54:31 -0700

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?


>
> On Nov 11, 2003, at 10:45 AM, Denis Vaillant wrote:
>
>> Hello,
>>
>> I do not understand why the comparison does not work :
>>
>> rxNext1 = 0.400000;
>>
>> if(rxNext1==0.400000)
>> {
>> NSLog(@"Should work :(");
>> }
>>
>> PS : rxNext1 is a float.
>>
>> Cheers,
>>
>> Denis
>> _______________________________________________
>> 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.
> _______________________________________________
> 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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Pure newbie :(
      • From: Ben Dougall <email@hidden>
    • Re: Pure newbie :(
      • From: Scott Ellsworth <email@hidden>
    • Re: Pure newbie :(
      • From: Troy Dawson <email@hidden>
References: 
 >Re: Pure newbie :( (From: "Tony S. Wu" <email@hidden>)

  • Prev by Date: Re: Deprecated method documentation
  • Next by Date: Re: Pure newbie :(
  • Previous by thread: Re: Pure newbie :(
  • Next by thread: Re: Pure newbie :(
  • Index(es):
    • Date
    • Thread