title: How can I improve this piece of code?
body: <p>Shark tells me that this is a hotspot for bad performance:</p>
  
  <pre><code>double distanceA = fabsf(target - current);
  </code></pre>
  
  <p>target is CGFloat
  current is CGFloat</p>
  
  <p>the rest of my calculations rely on double. Maybe there's some smarter way to do this anyways?</p>