• 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: magic integer converter number 62?


  • Subject: Re: magic integer converter number 62?
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 23 Feb 2001 02:34:10 +0000

Chris Nebel wrote on Thu, 22 Feb 2001 14:49:18 -0800:

>M Shaw wrote:
>
>> Can anybody figure out why this works:
>>
>> set x to 62
>> set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>>
>> and this doesn't:
>>
>> set x to 61
>> set b to ((x + (2.6 - (2.6 mod 1))) - x) as integer
>
>OK, this has gone on quite long enough. The basic problem has to do
>with the limitations of finite-precision numbers. What scripting
>additions you have installed makes no difference, but the version of
>AppleScript does, since we've tweaked the behavior several times.
>(Obviously, it's still not quite right.)

It's probably rounding 'like taught in school'. ;-)

NG


  • Prev by Date: Re: 62/62 - no macgic integer converter number - just a mixing of classes!
  • Next by Date: Re: setting finder window positions
  • Previous by thread: Re: magic integer converter number 62?
  • Next by thread: Re: magic integer converter number 62?
  • Index(es):
    • Date
    • Thread