Results 1 to 2 of 2

Thread: [RESOLVED] Integer Testing: Positive And Negative Values

  1. #1

    Thread Starter
    Addicted Member mouse88's Avatar
    Join Date
    Mar 2009
    Location
    South Wales, United Kingdom
    Posts
    225

    Resolved [RESOLVED] Integer Testing: Positive And Negative Values

    I am looking for a way to test an integer value to see if it is positive or negative so I can perform the required actions. Can anyone provide help with this?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,289

    Re: Integer Testing: Positive And Negative Values

    If the number > 0, it's positive.
    If the number < 0, it's negative.
    If the number = 0.... Well, you can argue on this...
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width