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: Shane Stanley <email@hidden>
- Date: Fri, 05 Jun 2009 08:51:44 +1000
- Thread-topic: Same code gives different answers in 2 different scripts
On 5/6/09 7:52 AM, "Chris Page" <email@hidden> wrote:
> I understand why that makes a certain sense, but round is a math
> operation. There are lots of math operations.
>
> Formatting a value--numeric or otherwise--as text is a separate
> operation from rounding, multiplication or, say, concatenation and
> filtering.
Right, but it's not like there's no precedent for mixing stuff like this. A
good example is:
1.5 as integer
This used to throw an error, because of course 1.1 can't be made into an
integer. Someone decided this wasn't helpful, so now the coercion does a
rounding operation and then coerces the result of that.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
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