Scratch that I get 27. I must have clicked something wrong. This is an example of 'measure twice send once'...
~joe -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Sent: Thursday, July 27, 2006 1:47 PM To: 'REALbasic NUG' Subject: RE: Math Error? That's weird... The calculator on XP gives 27.777777777778. ?!?! ~joe -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Norman Palardy Sent: Thursday, July 27, 2006 1:40 PM To: REALbasic NUG Subject: Re: Math Error? OS X calculator gives 26.999999999 Since i is an integer and d is a double you effectively truncated the .999999 portion So try rounding it when you assign it i = round(d) _______________________________________________ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
