B4R Question ... don't know why - error or not?:-))

Hans- Joachim Krahe

Active Member
Licensed User
Longtime User
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
 
Top