title: Stop a number at a certain range
body: <p>Basic problem but I can't seem to wrap my head around it:</p>
  
  <p>I have something that rotates and I want to stop it at a certain range.</p>
  
  <p>So I want it to return false if the rotation (which is in double) is within a certain range.</p>
  
  <p>Example</p>
  
  <p>Rotation = 182, StopAt 180, Accuracy 2. So should stop.</p>
  
  <p>Rotation = 182, StopAt 180, Accuracy 1. So should not stop.</p>
  
  <p>Current I have:</p>
  
  <pre><code>/**
   *
   * @return
   * number = 100, current = 105, accuracy = 10
   * Example
   * 105c / 100n = 1.05..
   * 10c / 100n = 0.1..
   */
  public boolean stopAtRange(double number, double current, double accuracy)
  {
      if(current / number) + accuracy)
      {
          return true;
      }
      return false;
  }
  </code></pre>