Public Sub isNumberOneCloserToZero (numberOne as Int, numberTwo as Int) as Boolean
return (abs(numberOne) < abs(numberTwo))
End Sub
I imagine it's the negative number that's throwing you off, the math isn't very difficult if they are both positive. So the solution is to use abs() to get the absolute value of both, which in effect makes them both positive and simple to compare.
Just to be clear, nobody's is wrong. As stated in #7, the OP's solution (see #1) is the answer to "isNumberTwoCloserToZero".
Miss-naming a Sub could become a problem for future debugging.
Interesting. This changes the semantics(?) of the function (beyond @William Lancee's observation), since neither number is closer to zero (and therefore a false would seemingly be correct).