• 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
How can I round in applescript to 3 digits after a period?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I round in applescript to 3 digits after a period?


  • Subject: How can I round in applescript to 3 digits after a period?
  • From: "Patrik B." <email@hidden>
  • Date: Thu, 3 Jan 2008 02:34:43 -0800

Hi,

This might sound silly but how do you round a real number in applescript to 3
digits after the period?

I.e. 19.9898923978923892 should just be rounded to 19.989
Also 19.0909 should just be rounded to 19.989

Per what I understand rounding in applescript rounds to an integer so is there
a different rounding method that I can use to round to three digits after the
period?

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: How can I round in applescript to 3 digits after a period?
      • From: "Mark J. Reed" <email@hidden>
    • Re: How can I round in applescript to 3 digits after a period?
      • From: Michaël Grünewald <email@hidden>
    • Re: How can I round in applescript to 3 digits after a period?
      • From: Rob Stott <email@hidden>
    • Re: How can I round in applescript to 3 digits after a period?
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Can I get page size of each page in a pdf
  • Next by Date: Re: Dates
  • Previous by thread: Re: Can I get page size of each page in a pdf
  • Next by thread: Re: How can I round in applescript to 3 digits after a period?
  • Index(es):
    • Date
    • Thread