Syntax Error: rDouble = (iInteger >> 10)
Posted: Tue Sep 03, 2024 4:12 pm
PB v6.04/6.12b3, Windows 7
Why does the last line in the code Not work?
Peter
Why does the last line in the code Not work?
Peter
Code: Select all
Define rDouble.d
Define iInteger.i
iInteger = 4096
rDouble = (iInteger / 1024)
rDouble = (4096 >> 10)
rDouble = (iInteger >> 10)
; ---------------------------
; PureBasic
; ---------------------------
; Line 6: Can't use any of the following operands with float or double: <<, >>, &, |, !, %.
; ---------------------------
; OK
; ---------------------------