Re: Formatting double values
Re: Formatting double values
- Subject: Re: Formatting double values
- From: "Christoph Lauterbach" <email@hidden>
- Date: Sun, 10 Oct 2004 02:55:04 +0200 (MEST)
Thank you, that was it.
Christoph
>
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...
>
--
GMX ProMail mit bestem Virenschutz
http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden