Re: magic integer converter number 62? - Joking???
Re: magic integer converter number 62? - Joking???
- Subject: Re: magic integer converter number 62? - Joking???
- From: Emmanuel <email@hidden>
- Date: Thu, 22 Feb 2001 17:24:14 -0500
At 22:33 -0500 21/02/01, Deivy Petrescu wrote:
>
set x to 61
>
set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>
has a problem, but
>
>
set x to 62
>
set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>
does not. And apparently 62 is the lower bound for x so that b does
>
not return an error.
>
Why? i do not know.
>
64 at least I would look for a clue, 62 clueless!
Just in case, both snippets work on my machine.
----------------
set x to 61
set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
-- 2
----------------
----------------
set x to 62
set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
-- 2
----------------
Actually, same result for any x from 0 to 100000. Didn't test further.
My non-Apple Scripting Additions:
AppleScript formatting
Satimage
Emmanuel