Search:

Type: Posts; User: elamre

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,793

    Re: Have trouble dealing with negative numbers.

    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...
  2. Replies
    6
    Views
    1,793

    Re: Have trouble dealing with negative numbers.

    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...
  3. Replies
    6
    Views
    1,793

    Re: Have trouble dealing with negative numbers.

    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...
Results 1 to 3 of 3