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

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


  • Subject: Re: How can I round in applescript to 3 digits after a period?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 3 Jan 2008 16:27:41 -0500

On Jan 3, 2008 4:03 PM, Doug McNutt <email@hidden> wrote:
At 12:57 -0500 1/3/08, Mark J. Reed wrote:
>I.e. 19.9898923978923892 should just be rounded to 19.989
>That's not rounding, that's truncating.  19.9898 rounds to 19.990.

To make a truncation look pretty much like a round add 0.5 to the number before truncating to an integer.


As far as I can tell, Applescript automatically rounds for you, rather than truncating.  I was referring to the OP's stated desired result, which corresponds to truncation rather than rounding.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >How can I round in applescript to 3 digits after a period? (From: "Patrik B." <email@hidden>)
 >Re: How can I round in applescript to 3 digits after a period? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: How can I round in applescript to 3 digits after a period?
  • Next by Date: Unexpected Argument problem
  • Previous by thread: Re: How can I round in applescript to 3 digits after a period?
  • Next by thread: choose from list - question
  • Index(es):
    • Date
    • Thread