trepdas Active Member Licensed User Longtime User Jul 11, 2018 #1 Hello Good People in VB B4X: if any_integer = int(any_integer/2) then ' no leftovers end if How would it be in B4a ? Thank you in advance...
Hello Good People in VB B4X: if any_integer = int(any_integer/2) then ' no leftovers end if How would it be in B4a ? Thank you in advance...
S sorex Expert Licensed User Longtime User Jul 11, 2018 #2 like this? B4X: dim n as float=1.23 if n mod 1>0 then log("float") if n mod 1=0 then log("int") Upvote 0
klaus Expert Licensed User Longtime User Jul 11, 2018 #3 One solution: B4X: If any_intrger Mod 2 = 0 Then Log("even") Else Log("odd") End If Upvote 0