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>

Reply via email to