Well, you can use an
if(statement)
to check if the number is smaller then 0, and thus being negative. Then you could ignore negative numbers. And you could also check if the number is equal to...
Type: Posts; User: elamre
Well, you can use an
if(statement)
to check if the number is smaller then 0, and thus being negative. Then you could ignore negative numbers. And you could also check if the number is equal to...
Ok sorry, just trying to help here.
I edited the post completely. That topic should be better accesible. I did not know it existed.
I normally like to have the answer and then work backwards to...
Try to use the code tags, it makes it so much easier to read and understand your code :)
So all you want to do is handle negative numbers? Ignore them? or make them positive?
What you could do is...