|
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);
[Prev in Thread] | Current Thread | [Next in Thread] |