hi, i was just wondering if anybody knew why i cant seem to be able to return a decimal number from a function, the number is always rounded up or down.
small example:
Graphics 640,480
SetBuffer BackBuffer()
While Not KeyDown(1)
Cls
If KeyDown(200) Then x# = x# + 0.01
a# = find_x(x#)
Text 0,0,"a = " +a#
Text 0,20,"x = " +x#
Flip
Wend
End
Function find_x(x#)
Return x#
End Function
both numbers should be the same, but there not?
cheers.
small example:
Graphics 640,480
SetBuffer BackBuffer()
While Not KeyDown(1)
Cls
If KeyDown(200) Then x# = x# + 0.01
a# = find_x(x#)
Text 0,0,"a = " +a#
Text 0,20,"x = " +x#
Flip
Wend
End
Function find_x(x#)
Return x#
End Function
both numbers should be the same, but there not?
cheers.