Re: How can I round in applescript to 3 digits after a period?
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