code#
Dim diffx As Float
Dim endcountNextXR As UInt
Dim endcountXR As UInt
endcountNextXR = 23000
endcountXR = 25000
diffx = endcountNextXR - endcountXR
Log( "diffX = ", diffx) ' diffX = 63536 !!! wrong !!!
'----------------------------------------------------------------------------------------------------------
Dim diffx As Float
Dim endcountNextXR As UInt
Dim endcountXR As UInt
endcountNextXR = 23000
endcountXR = 25000
diffx = endcountNextXR
diffx = diffx - endcountXR
Log( "diffX = ", diffx) ' diffX = -2000 !!! right!!!
'----------------------------------------------------------------------------------------------------------
code#/
tried on Mega with B4R 2.2
Dim diffx As Float
Dim endcountNextXR As UInt
Dim endcountXR As UInt
endcountNextXR = 23000
endcountXR = 25000
diffx = endcountNextXR - endcountXR
Log( "diffX = ", diffx) ' diffX = 63536 !!! wrong !!!
'----------------------------------------------------------------------------------------------------------
Dim diffx As Float
Dim endcountNextXR As UInt
Dim endcountXR As UInt
endcountNextXR = 23000
endcountXR = 25000
diffx = endcountNextXR
diffx = diffx - endcountXR
Log( "diffX = ", diffx) ' diffX = -2000 !!! right!!!
'----------------------------------------------------------------------------------------------------------
code#/
tried on Mega with B4R 2.2