Thread: Changing from positive to negative numbers

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    x*=-1;

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by m37h0d View Post
    x*=-1;
    There's a simpler answer. Just a basic assignment.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ignoring negative numbers and moving on
    By quiet_forever in forum C++ Programming
    Replies: 6
    Last Post: 10-29-2008, 11:38 PM
  2. Question
    By Detrigan in forum C Programming
    Replies: 2
    Last Post: 10-19-2003, 10:13 PM
  3. Negative Numbers
    By Quantrizi in forum C++ Programming
    Replies: 7
    Last Post: 10-12-2003, 12:48 AM
  4. Replies: 1
    Last Post: 10-01-2001, 10:39 AM