title: What's the equivalent of Math.abs() in Objective-C?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4717060/convert-to-absolute-value-in-objective-c">Convert to absolute value in Objective-C</a>  </p>
  </blockquote>
  
  
  
  <p>As i am playing with 2d graphics, i'd like to calculate amount of points object has moved between 2 <code>CGPoints</code>. Given that object can move in both direction, i am only interested in sheer number of points representing the difference.</p>
  
  <p>In <code>Java</code> i'd <code>Math.abs(startpoint.x - endpoint.x)</code></p>
  
  <p>How can i do the same in <code>Objective-C</code>?</p>