FROM : j o a r
DATE : Sun Oct 10 02:24:18 2004
Perhaps simply something like this:
NSString *doubleString = [NSString stringWithFormat: @"%.4f", myDouble];
Check "man printf" for more info.
j o a r
On 2004-10-10, at 02.17, Christoph Lauterbach wrote:
> I've searched in the Foundation API Reference, but I haven't found the
> answer:
>
> How can I format a double value (i.e. 0.0000) and return it as a
> NSString?
>
> I expect there is a connection between NSString and
> NSNumberFormatter...
DATE : Sun Oct 10 02:24:18 2004
Perhaps simply something like this:
NSString *doubleString = [NSString stringWithFormat: @"%.4f", myDouble];
Check "man printf" for more info.
j o a r
On 2004-10-10, at 02.17, Christoph Lauterbach wrote:
> I've searched in the Foundation API Reference, but I haven't found the
> answer:
>
> How can I format a double value (i.e. 0.0000) and return it as a
> NSString?
>
> I expect there is a connection between NSString and
> NSNumberFormatter...
| Related mails | Author | Date |
|---|---|---|
| Christoph Lauterba… | Oct 10, 02:17 | |
| Aaron Fothergill | Oct 10, 02:20 | |
| j o a r | Oct 10, 02:24 | |
| Christoph Lauterba… | Oct 10, 02:55 |






Cocoa mail archive

