I want to check if number1 is more away from 0 than number2.
Example:
Number1=10
Number2=-12
Number2 is further away from 0 than Number1 Return False
How can i check this?
Solution:
Example:
Number1=10
Number2=-12
Number2 is further away from 0 than Number1 Return False
How can i check this?
Solution:
B4X:
Public Sub isNumberOneCloserToZero (numberOne As Int, numberTwo As Int) As Boolean
Return (Abs(numberOne) >= Abs(numberTwo))
End Sub
Last edited: