Skip navigation.
 
mlRe: Formatting double values
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...

Related mailsAuthorDate
mlFormatting double values Christoph Lauterba… Oct 10, 02:17
mlRe: Formatting double values Aaron Fothergill Oct 10, 02:20
mlRe: Formatting double values j o a r Oct 10, 02:24
mlRe: Formatting double values Christoph Lauterba… Oct 10, 02:55