Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
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.