Re: magic integer converter number 62? - Joking???
Re: magic integer converter number 62? - Joking???
- Subject: Re: magic integer converter number 62? - Joking???
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 21 Feb 2001 22:15:54 -0800
On 2/21/01 9:23 PM, "Michelle Steiner" <email@hidden> wrote:
>
On 2/21/01 6:15 PM, Paul Berkowitz <email@hidden> wrote:
>
>
>> set x to 61
>
>> set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>>
>
>> returns the following
>
>>
>
>> --> Can't make 2.0 into a integer.
>
>>
>
>> run it and try it for yourself.
>
>>
>
>> --Michelle
>
>>
>
>
>
> x has nothing to do with it, it seems:
>
>
>
> (2.6 - (2.6 mod 1)) as integer
>
> --> Can't make 2.0 into an integer
>
>
then why is it that
>
>
set x to 62
>
set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>
--> 2
>
a)
(62 + 2.0 - 62) as integer
-- 2
b)
64.0 as integer
-- 64
c)
(64.6 - 0.6) as integer
--> Can't make 64.0 into an integer
d)
(64.5 - 0.5) as integer
-- 64
e)
(64.7 - 0.7) as integer
--64
f)
(32.3 - 0.3) as integer
--> Can't make 32.0 into an integer
g)
(129.2 - 1.2) as integer
--> Can't make 128.0 into an integer
So it seems to have to do with powers of 2 plus factors of 0.3 subtracting
the factor of 0.3. Nothing to do with x a such.
((n * 2^5) + (n * 0.3)) - (n * 0.3)
--> Can't make (n * 2^5).0 into an integer
Weird.
--
Paul Berkowitz