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

Re: div bug


  • Subject: Re: div bug
  • From: Philip Aker <email@hidden>
  • Date: Tue, 4 Aug 2009 00:36:57 -0700

On 2009-08-04, at 00:12:54, julifos wrote:

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 --> (!)

Doesn't "float" on my setup either (10.5.7/Intel). 

do shell script "tclsh <<< 'puts [expr ((1.015 * 100) + 0.5) / 1]'"

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: Michael Ghilissen <email@hidden>
References: 
 >div bug (From: julifos <email@hidden>)

  • Prev by Date: Re: div bug
  • Next by Date: Auto: AppleScript-Users Digest, Vol 6, Issue 352
  • Previous by thread: Re: div bug
  • Next by thread: Re: div bug
  • Index(es):
    • Date
    • Thread