Check if Integer is Positive or Negative - Objective C

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-06-17T21:17:02Z Indexed on 2010/06/17 21:23 UTC
Read the original article Hit count: 520

Hello,

How can I tell in objective-c coding if an integer is positive or negative. I'm doing this so that I can write an "if" statement stating that if this integer is positive then do this, and if its negative do this.

Thanks,

Kevin

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode