title: IOS: Get two digits of a double (€) NOT to display the value, just return it
body: <p><em>I´ve read a lot of posts about this but all of them were to limit the number digits to show them(NSString) .In my case I have:</em></p>
  
  <p>I compare two double values(wich are the "same"), each of them got from different mathematical operations. For example: (4.800000 and 4.800000) </p>
  
  <p>double result1=4.800000, result2=4.800000</p>
  
  <p>//compare the results:</p>
  
  <pre><code>if(result1==result2){
      msg.text=@"well done!!";        
  }else if(result1&gt;result2){
      msg.text=@"continue your work";    
  }
  </code></pre>
  
  <p>"I´m working with money (4,80€)"</p>
  
  <p>In the msg label i get "continue your work" message, not the "well done". I don´t even know if the comparison is done in a correct way.</p>
  
  <p>I think that the best idea would be to limit 4.800000 to 4.80 in order to delete small values and get a exact comparison.(how could i do this?)
  I DONT WANT to limit the number to two digits just to PRINT the solution, I want to WORK with that number.</p>