• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: magic integer converter number 62? - Joking???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: applescript-users digest, Vol 2 #408 - 14 msgs
  • Next by Date: RE: Michelle - Embedding a sound
  • Previous by thread: Re: applescript-users digest, Vol 2 #408 - 14 msgs
  • Next by thread: Re: magic integer converter number 62? - Joking???
  • Index(es):
    • Date
    • Thread