• 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
Re: International number formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: International number formats


  • Subject: Re: International number formats
  • From: Bernardo Hoehl <email@hidden>
  • Date: Fri, 25 Feb 2005 09:17:54 -0300

Hi Brennan,


I face the same questions here.

We, in Brazil use commas for decimals and periods for thousants too.

And most of my maths apps tend to result in error at the first time run and require my attention.

I looked up system preferences dictionary, and there isn't much info there.

I was wondering if there is a lower level system access I could use to change the number formats in system preference's international pane.

One work around would be dettecting the settings > alerting the user > changing the formats to what I need.

But how?


Bernardo Höhl Rio de Janeiro - Brazil


On 25 Feb, 2005, at 8:53 AM, Brennan wrote:

I just noticed something on my machine which is (currently) set up to use
Danish number formatting. (comma for decimals, period for thousands)


"1000.0" as number -- fails with error -1700

"1.000,0" as number -- fails with error -1700

"1000,0" as number -- returns 1000.0

1000.0 as string -- returns "1000,0"

1000,0 as string --> wont compile

So it looks like AppleScript uses the English language number formats in
some cases and Danish number formats in other cases, depending on what is
getting coerced to what. Note that the 'thousand' seperator causes
trouble.


What is the intended/preferred behavior?

Brennan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: International number formats
      • From: Brennan <email@hidden>
    • Re: International number formats
      • From: yvan-koenig <email@hidden>
References: 
 >International number formats (From: Brennan <email@hidden>)

  • Prev by Date: Re: How do I get a script to ask me the number of times to repeat?
  • Next by Date: Re: International number formats
  • Previous by thread: International number formats
  • Next by thread: Re: International number formats
  • Index(es):
    • Date
    • Thread