MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 16 May 2003 10:41:11 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
On Friday, May 16, 2003, at 10:22  AM, Ethan Rips wrote:

> On 5/15/03 10:39 PM, Nigel Garvey <[log in to unmask]>
> wrote:
>
>> 1.5 as double integer
>> --> 2.0
>
> OMM (running 10.1.5) the result is 1.0. Does this behavior change
> depending
> on one's version of Applescript?
>
I hope not, though of course the right behaviour might be seen as a bug.

When I give a real number and ask for an int, I want it truncated.

Taking a look at 7.6.1...

1.5 --> 2
2.5 --> 2
3.5 --> 4

So it is doing clever rounding.

on 10.2.6 I get the same results.

It sounds like its one of those fixed then broken then fixed then
broken.

-Mark
No where did I put that copy of the Object Support Library...

ATOM RSS1 RSS2