Print" c_ppr= "; Current_ppr ;" ra= "; Raw_angle ;" rc= "; Rotate_count
Do Loop End
If current_ppr is in range [-1,-799] then Rotate_count = -1 but I'd expect that Rotate_count should be 0. If current_ppr>0 then Rotate_count=0. That is ok.
Also example from help (a little changed)
Code:
$regfile="m48def.dat"' specify the used micro $crystal=4000000' used crystal frequency $baud=19200' use baud rate $hwstack=32' default use 32 for the hardware stack $swstack=10' default use 10 for the SW stack $framesize=40' default use 40 for the frame space
Dim S AsSingle , Z AsSingle For S =-1To1Step0.1 Print S ;Spc(3);Round(s);Spc(3);Fix(s);Spc(3);Int(s) Next End
it does the same. I've done some workaround but out of curiosity could someone explain me why int() functiuons works in this way>
Regards,
Martin
(BASCOM-AVR version : 2.0.8.2 , Latest : 2.0.8.5 )
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum