Ok FIX(X) it says
"Returns for values greater then zero the next lower value, for values less then zero the next upper value."
So should this not give 0.1 and not 0.0
[code:1:a010c0369a]
$regfile = "m644def.dat"
$Crystal=4000000
$hwstack=40
$swstack=16
$framesize=32
Dim X As Single
Dim Y As Single
X = 0.09999999
Y = Fix(x)
Lcd Y
End
[/code:1:a010c0369a]
Note run on 2.0.7.7
Regards Paul
[b:a010c0369a][color=red:a010c0369a](BASCOM-AVR version : 2.0.7.6 )[/b:a010c0369a][/color:a010c0369a]
↧