Localized decimal point
Localized decimal point
- Subject: Localized decimal point
- From: kubernan <email@hidden>
- Date: Tue, 1 Apr 2003 21:36:27 +0200
Hello,
This is the first i have this problem and the archive don't respond to
it.
I don't understand why suddenly i have to enter 0,45 instead of 0.45
in my software (untouched since 10.2.3).
if i use :
[myTextField setStringValue:[[NSNumber numberWithDouble:0.45]
stringValue]];
the value appears as 0.45 in the GUI.
But if i try :
NSLog(@"Value of myTextField : %f", [myTextField doubleValue]);
The result is 0.00000. This is wrong of course.
Now is i type the value 0,45 (local french decimal representation)
i now have 0.45 displayed (english format) using NSLog....
The question is why it seems i have to setup a localization now ?
How i can do that quickly (this is not a production software) for
working in
english representation ?
Thx for your help,
K.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.