• 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: Currency Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Currency Numbers


  • Subject: Re: Currency Numbers
  • From: Peter Waibel <email@hidden>
  • Date: Fri, 23 Jun 2006 11:21:12 +0200


Am 23.06.2006 um 04:35 schrieb Christopher Nebel:

The decimal "point" isn't a period in all locales -- for instance, in France they use a comma. Because "0.0 as text" uses the localized number format to create the string, you get the localized decimal point. Whether or not you care depends on how widely you expect your script to be distributed.

Some lines to show what problems may occur when using scripts at different locations without considering the decimal "point".

--Systems with decimal "point" set to ","
"0.0" as real --> Can't make "0.0" into type real
"0,0" as real --> 0.0
0.0 as text --> "0,0"

--Systems with decimal "point" set to "."
"0.0" as real --> 0.0
"0,0" as real --> Can't make "0,0" into type real
0.0 as text --> "0.0"


Peter _______________________________________________ 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
References: 
 >Re: Currency Numbers (From: Carlos Ysunza <email@hidden>)
 >Re: Currency Numbers (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Intel UI scripting
  • Next by Date: Re: Searching for RGB images in a Quark doc
  • Previous by thread: Re: Currency Numbers
  • Next by thread: Re: Currency Numbers
  • Index(es):
    • Date
    • Thread