Bug in setting setting the height of rectangles

Frank Leahy frank at backtalk.com
Tue Jan 13 07:14:56 EST 2004


I seem to remember reading that integer arithmetic uses trunc() by 
default.  Therefore 70 - .00001 = trunc(69.9999) = 69 is what you'd 
expect.

Why was it you were subtracting .000001 in the first place?

-- Frank


On Tuesday, January 13, 2004, at 09:12 AM, 
use-revolution-request at lists.runrev.com wrote:

> On Monday, January 12, 2004, at 05:50 PM, Jim Hurley wrote:
>
>> I have been getting some strange results setting the heights of
>> graphic rectangles--programmatically.
>
> I think rounding in setting the height might be good.  But I have no
> problem with not rounding.  I assume there is a meaningful workaround.
>
> Dar Scott



More information about the use-livecode mailing list