[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locale dependent printf

From: Nicola Pero
Subject: Re: locale dependent printf
Date: Fri, 27 Apr 2001 15:28:38 +0100 (BST)

Sorry - answered too quickly - here is the same code but without typos :-)

 NSString *result;
 float floatValue = 9.5;

 /* Switch to default locale */
 GSSetLocale (@"C");

 result = [NSString stringWithFormat: @"%f", floatValue];
 /* Switch back to user defined locale */
 GSSetLocale (NULL);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]