Re: Same code gives different answers in 2 different scripts
Re: Same code gives different answers in 2 different scripts
- Subject: Re: Same code gives different answers in 2 different scripts
- From: Chris Page <email@hidden>
- Date: Tue, 02 Jun 2009 18:42:24 -0700
On Jun 2, 2009, at 4:56 PM, Shane Stanley wrote:
On 3/6/09 8:52 AM, "Chris Page" <email@hidden> wrote:
to findRound of num given numDecimals:n
set x to 10 ^ n
return (round (num * x)) / x
end findRound
set rounded_height to findRound of 3 given numDecimals:0 --> 3.0
I guess what Shane is trying to say is that the script doesn’t know how to handle numDecimals when it’s zero. I assume the OP doesn’t care. :-)
-- Chris Page
The other, other AppleScript Chris
|
_______________________________________________
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