• 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: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?


  • Subject: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • From: Marco Scheurer <email@hidden>
  • Date: Wed, 10 Mar 2004 23:21:58 +0100

On Mar 10, 2004, at 11:08 PM, Clark Cox wrote:

x = nan
x != x

That's true for the C concept of NaN, but not for the NSDecimalNumber concept of NaN. I filed a bug on this over a year ago (Feb 19, 2003), and it's currently in "Open/Analyze".

rdar://3176846

I wouldn't consider that [[NSDecimalNumber notANumber] isEqual:[NSDecimalNumber notANumber]] returns YES is a bug because in C NaN != NaN ... There's no reason that the C hack should break the semantic of isEqual: in objects.

However if the bug report is that [[NSDecimalNumber notANumber] doubleValue] does not return NaN, then OK.

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
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: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
      • From: Clark Cox <email@hidden>
References: 
 >Storing NaN in NSMutableArray ? (From: "Kubernan @ 10191 Tec." <email@hidden>)
 >[SOLVED...but] Re: Storing NaN in NSMutableArray ? (From: "Kubernan @ 10191 Tec." <email@hidden>)
 >Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ? (From: Marco Scheurer <email@hidden>)
 >Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ? (From: Glenn Andreas <email@hidden>)
 >Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ? (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Next by Date: Re: Wisdom of overriding isEqual:
  • Previous by thread: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Next by thread: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Index(es):
    • Date
    • Thread