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

Storing NaN in NSMutableArray ?


  • Subject: Storing NaN in NSMutableArray ?
  • From: "Kubernan @ 10191 Tec." <email@hidden>
  • Date: Wed, 10 Mar 2004 19:59:38 +0100

Hello,

I'm looking for a way to store a NaN value in a NSMutableArray.
When i :

[anArray addObject:[NSDecimalNumber notANumber]];

The values seems become +0.0 :
NSLog(@"Array contains : %@", anArray); gives :

{type = mutable-small, count = 1, values = (
0 : <CFNumber 0x310e80 [0xa01900e0]>{value = +0.0, type = kCFNumberFloat64Type}
)}

Why NaN becomes +0.0 ?
How to store NaN in my array ?

Thx a lot.
Chris.
_______________________________________________
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:
    • [SOLVED...but] Re: Storing NaN in NSMutableArray ?
      • From: "Kubernan @ 10191 Tec." <email@hidden>
  • Prev by Date: Re: Cron / Scheduling
  • Next by Date: Re: Cron / Scheduling
  • Previous by thread: NSWindowController:shouldCloseDocument
  • Next by thread: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Index(es):
    • Date
    • Thread