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...