title: Is there a more elegant/clever/brief way to bring an unknown number closer to 0?
body: <p>Basically I'm working out drag in a game with physics. The sideways motion needs to be
  reduced (as in brought closer to 0, not just brought into negative), but I don't know which direction it's travelling in, so I don't know whether to add drag or subtract drag.</p>
  
  <p>(If an item is moving right, it has positive force, moving left, negative force)</p>
  
  <p>Right now I'm doing this:</p>
  
  <pre><code>if (objects[i]-&gt;force.x &gt; 0)
      objects[i]-&gt;force.x -= drag;
  else
      objects[i]-&gt;force.x += drag;
  </code></pre>
  
  <p>Which works fine, but I get the feeling that there's bound to be a sleeker way to do this.</p>
  
  <p>It also couldnt hurt to find a way to ensure it doesn't go past 0 </p>