Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Currency Numbers




On Jun 19, 2006, at 4:55 PM, David Bradley wrote:

Hi,

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

David, 

this is a handler that someone posted once before when I asked the same question...

 Sorry whoever that was ... otherwise I would give you the credit for it!


--- used for rounding number
on roundThis(n, numDecimals)
set x to 10 ^ numDecimals
(((n * x) + 0.5) div 1) / x
end roundThis


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Currency Numbers (From: David Bradley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.