NSString to int (or double) conversion
NSString to int (or double) conversion
- Subject: NSString to int (or double) conversion
- From: Cyprien <email@hidden>
- Date: Tue, 8 Jul 2003 15:29:45 +0200
I'm sorry to ask the same kind of question again, but now I'm trying to
convert an NSString (like "512") into an int. (or a double)
And I've search the cocoa.mamasam.com, and found nothing.
Cyprien
Le lundi, 7 jul 2003, ` 16:11 Europe/Paris, Jonathan E. Jackel a icrit :
double x = 1.23456;
NSString *aString = [NSString stringWithFormat:@"%f", x];
This question has been asked at least a dozen times. In the future,
check
the archives first at cocoa.mamasam.com.
Jonathan
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Cyprien
Sent: Monday, July 07, 2003 9:39 AM
To: email@hidden
Subject: Double to NSString conversion
How can I convert a double to a NSString in order to use it with
setStringValue:(NSString *)aString ?
Cyprien
_______________________________________________
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.
_______________________________________________
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.