• 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: kai <email@hidden>
  • Date: Mon, 19 Jun 2006 19:16:06 +0100


On 19 Jun 2006, at 18:49, Yvan KOENIG wrote:

In France we use the comma as decimal separator...

Fair point, Yvan. :-)

------------------

on currency_format for v
set {s, d} to {(0 as real as text)'s character 2, (round (v mod 1 * 100)) / 100 as string}
(v div 1 as text) & s & text 1 thru 2 of (d's text ((offset of s in d) + 1) thru -1 & "00")
end currency_format


currency_format for -123.4

--> "-123,40" (* on a French system *)

------------------

---
kai


_______________________________________________ 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: 
 >Currency Numbers (From: David Bradley <email@hidden>)
 >Re: Currency Numbers (From: Wayne Melrose <email@hidden>)
 >Re: Currency Numbers (From: Adam Bell <email@hidden>)
 >Re: Currency Numbers (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Currency Numbers
  • Next by Date: Re: Dot files
  • Previous by thread: Re: Currency Numbers
  • Next by thread: Re: Currency Numbers
  • Index(es):
    • Date
    • Thread