Re: magic integer converter number 62? - Joking???
Re: magic integer converter number 62? - Joking???
- Subject: Re: magic integer converter number 62? - Joking???
- From: ThK <email@hidden>
- Date: Wed, 21 Feb 2001 22:54:15 +0100
On 21.02.2001 at 10:20 Uhr, email@hidden wrote:
>
>
set x to 61
>
-- set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>
2.6 mod 1 --> 0.6
>
2.6 - result --> 2.0
>
x + result --> 63
>
result - x --> 2
>
result as integer --> 2
#The result is always 2 independend of x because:
((x + (2.6 - (2.6 mod 1))) - x) = x + 2.6 - (2.6 mod 1) - x = (x - x) + 2.6 - (2.6 mod 1)
which is similar to:
((x + (2.6 - (2.6 mod 1))) - x) = 2.6 - (2.6 mod 1) = 2.6 - 0.6 = 2
because of the commutative rule and (x - x) is definitely 0
So, what are you both talking about? That 2.6 - (2.6 mod 1) is always 2?
Try to get a 42! ;-)))
Regards,
Thomas
_______________________________________
Thomas Johannes Matthias Kuehner
Developer
AppleScripter
Administrator
Webmaster
macgix - software,network,consulting
http://www.macgix.com
http://www.ScriptMyMac.de