Re: NSString to int (or double) conversion
Re: NSString to int (or double) conversion
- Subject: Re: NSString to int (or double) conversion
- From: Robert Cerny <email@hidden>
- Date: Tue, 8 Jul 2003 16:03:44 +0200
- (int)intValue
HTH
Robert
On zter}, 7. 8, 2003, at 15:29 Europe/Prague, Cyprien wrote:
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.
_______________________________________________
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.