Re: Currency Numbers
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