Re: double to NSString
Re: double to NSString
- Subject: Re: double to NSString
- From: publiclook <email@hidden>
- Date: Thu, 3 Jul 2003 19:12:09 -0400
From the NSString documentation at
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSString.html
+ (id)stringWithFormat:(NSString *)format, ...
Returns a string created in the manner of localizedStringWithFormat:,
but using the users default locale to format numbers. See Using
Format Strings for more information.
See Also: initWithFormat:
The Using Format Strings link is
http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/Tasks/FormatStrings.html
You want %f, %e, %E, %g or %G.
Its worth mentioning that both documents cited heer are on your hard
disk.
You can also ask an NSNumber for its string value.
There are many other ways as well.
(This question is easily answered from a very casual inspection of your
hard disk TQIEAFVCIYHD)
On Thursday, July 3, 2003, at 06:08 PM, Paul N. Schatz wrote:
Can someone tell me how to convert a double into an NSString? Google
search has a direct hit on this question but the link is down. TIA.
Paul
--
--
Paul Schatz
Chem Dept
University of Virginia
_______________________________________________
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.