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

Re: Simple calculation


  • Subject: Re: Simple calculation
  • From: Steven Angier <email@hidden>
  • Date: Sat, 26 Jan 2002 22:39:27 +1100
  • Organization: Macscript.com

You can use the Macscript.com Library function "FormatNumber()", thus:

"#" & FormatNumber(327.75 * 50, 2)

You can also pass FormatNumber() a list of all the numbers you wish to format in the one
call.

Steven Angier
Macscript.com



Rob Stott wrote:

> set theCost to "#" & (327.75 * 50)
>
> ...I get the result 1.63875E+4 which is all well and good but the script
> forwards the figure to our accountant who is foxed by figures that aren't in
> the format #16387.50
>
> Is there a way to do this? (Short of getting a smarter accountant...)


References: 
 >Simple calculation (From: Rob Stott <email@hidden>)

  • Prev by Date: Newbie. How do I count "i"?
  • Next by Date: Re: Newbie. How do I count "i"?
  • Previous by thread: Re: Simple calculation
  • Next by thread: Weird try block syntax
  • Index(es):
    • Date
    • Thread