title: How to get the (Greatest Common Divisor)GCD of Doubles
body: <p>This is a simple task but i can't seem to figure out how to do it</p>
  
  <p>Here is a sample function structure</p>
  
  <pre><code>private double GetGCD(double num1, double num2)
  {
      //should return the GCD of the two double
  }
  </code></pre>
  
  <p>test data   </p>
  
  <pre><code>   num1 = 6;
     num2 = 3;
     *return value must be 3*
  
     num1 = 8.8;
     num2 = 6.6;
     *return value must be 2.2*
  
     num1 = 5.1;
     num2 = 8.5;
     *return value must be 1.7*
  </code></pre>
  
  <p>note: maximum decimal places is 1.
        programming language is not important. i just need the algorthm</p>
  
  <p>please help.. thank you!</p>