Can someone tell my why VAL is rounding a variable in the following code?
<br><br>
<br><br>
Code:
#COMPILE EXE DEFLNG A-Z FUNCTION PBMAIN () AS LONG X$ = "2.6" Y = VAL(X$) PRINT Y 'why is Y rounded to 3 when its assigned to a variable, PRINT VAL(X$), X$ 'but the original retains 2.6? WAITKEY$ END FUNCTION
Comment