• 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: "Marc K. Myers" <email@hidden>
  • Date: Mon, 19 Jun 2006 16:19:21 -0400

This is the technique I've always used:

set theRslt to (display dialog "Enter a number" default answer "")
try
	set theNmbr to (text returned of theRslt) as number
on error
	display dialog "That's not a number" buttons {"Cancel"}
end try
set theNmbr to (round (theNmbr * 100)) / 100

Marc [6/19/2006  4:18:37 PM]

On Jun 19, 2006, at 15:55:44 +0100, David Bradley wrote:
Date: Mon, 19 Jun 2006 15:55:44 +0100
From: David Bradley <email@hidden>
Subject: Currency Numbers
To: applescript users <email@hidden>

Hi,

Can you format numbers to 2 decimal points in Applescript. I want to
format the numbers in to a currency format

_______________________________________________ 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
  • Prev by Date: Re: Dot files
  • Next by Date: Re: Currency Numbers [2]
  • Previous by thread: Re: Currency Numbers
  • Next by thread: Re: Currency Numbers
  • Index(es):
    • Date
    • Thread