NSNumber stringValue
NSNumber stringValue
- Subject: NSNumber stringValue
- From: RedleX Support <email@hidden>
- Date: Fri, 11 Dec 2009 05:02:23 +0200
Hi,
I need to output a double into a text file and then read it back with
100% accuracy, will using NSNumber stringValue and then using NSString
doubleValue give me good results?
For example, if I write the following:
double a,b;
a=some number;
b=[[[NSNumber numberWithDouble:a] stringValue] doubleValue];
will a==b
TIA
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden