How do I check if a number is positive or negative
You can just compare it to 0. You can also include 0 in your comparison.
if (myNumber > 0)
How do I check if a number is positive or negative
You can just compare it to 0. You can also include 0 in your comparison.
if (myNumber > 0)