I've been looking and looking at the code below and can't figure out what I'm doing wrong, so I'm wondering if it could somehow be an error in B4A.
The array NumTopCards() is an Integer.
avgSpds is a Double.
As you can see in the Logs Tab, NumTopCards(p, Spd) = 2 and avgSpds = 2.666, so the single-stepper should not get past the first line of code to the Log line and the highlighted line, but it obviously does????
I created the following test app and it performed as expected.
The array NumTopCards() is an Integer.
avgSpds is a Double.
As you can see in the Logs Tab, NumTopCards(p, Spd) = 2 and avgSpds = 2.666, so the single-stepper should not get past the first line of code to the Log line and the highlighted line, but it obviously does????
I created the following test app and it performed as expected.
B4X:
Dim i As Int
Dim j As Double
i = 2
j = 2.1
If j > i Then
Msgbox("j is bigger","")
End If