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

div bug


  • Subject: div bug
  • From: julifos <email@hidden>
  • Date: Tue, 04 Aug 2009 09:12:54 +0200
  • Thread-topic: div bug

Hi all!

Just as someone found out it was OK mixing soda with chocolate, Mr. Bansemer
found this funny bug. Please, check it out and report!

set n to 1.015 * 100 --> 101.5
set n to n + 0.5 --> 102.0
n div 1 --> 101 --> (!)

The workaround for the "affected routines" would be coercing n to "small
real" (if you wish to preserve decimals) before using div.

Cheers...


jj


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: div bug
      • From: Doug McNutt <email@hidden>
    • Re: div bug
      • From: Philip Aker <email@hidden>
    • Re: div bug
      • From: Bert Groeneveld <email@hidden>
  • Prev by Date: Re: Can I get a list of app-defined keywords?
  • Next by Date: Re: div bug
  • Previous by thread: Re: Can I get a list of app-defined keywords?
  • Next by thread: Re: div bug
  • Index(es):
    • Date
    • Thread