Doing speedtests though, I see that's it's much faster to just check if the variable is greater than zero.
711
266
starttime = MilliSecs() For iter = 1 To 100000000 If Abs(variable) = variable ;variable is positive Else ;variable is negative EndIf Next Print MilliSecs() - starttime starttime = MilliSecs() For iter = 1 To 100000000 If variable > 0 ;variable is positive Else ;variable is negative EndIf Next Print MilliSecs() - starttime WaitKey() End
711
266