by pappawinni » Sun Aug 22, 2010 9:47 pm
Hi Tim,
You - in one case - used int(string) instead of CInt(string) and this is a different story
I told you to use val(string).. because..
Cint() cuts the decimals .. and in Kbasic it accepts string, but for negative values, delivers wrong result.
int() rounds to the next lower Integer... which makes a difference especially for negative values.
Cint(-123.123) delivers -123 while
int(-123.123) delivers -124 ! int() in KBasic does not accept string as input
Pappa makes everything what otherwise none likes
![Smile :)](images/smilies/icon_e_smile.gif)