NSString -> NSNumber with NSString representing a big unsigned long
NSString -> NSNumber with NSString representing a big unsigned long
- Subject: NSString -> NSNumber with NSString representing a big unsigned long
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 8 Jul 2002 16:28:23 +0200
Is there a clean way to make a NSNumber from a NSString when the
NSString represents a big unsigned long number?
Using [myString doubleValue] or intValue] produces a wrong value.
I'm a bit astonished that there is no [NSNumber numberWithString:]
method in Foundation....
Currently, I'm using sscanf to get the correct value for NSNumber but if
there's a cleaner way, I'm ready to use it.
_______________________________________________
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.