`
Clarion 6: MulDiv 2003-01-21 -- Alexey Solovjev Hello,
> > If I do the following, then all works correctly.
> >
> > ?Image1{PROP:Height} = INT((ImageH * WindowW) / ImageW)
> > ?Image1{PROP:Width} = WindowW
>
> This way not only is a work around but it is faster than variant without
> INT().
Following way is even faster:
MAP
MODULE('')
MulDiv (SIGNED,SIGNED,SIGNED),SIGNED,PASCAL
END
END
...
?Image1{PROP:Height} = MulDiv (ImageH, WindowW, ImageW)
Alexey Solovjev
Printed October 25, 2026, 5:47 am This article has been viewed/printed 36257 times. Google search has resulted in 36 hits on this article since January 25, 2004. |