• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Localized decimal point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Localized decimal point
      • From: Stéphane Sudre <email@hidden>
    • Re: Localized decimal point
      • From: Marco Binder <email@hidden>
  • Prev by Date: Re: Arrays & For Loops
  • Next by Date: RE: Um.. a little help?
  • Previous by thread: Re: Arrays & For Loops
  • Next by thread: Re: Localized decimal point
  • Index(es):
    • Date
    • Thread