title: rounding off double two decimal points
body: <pre><code>double x = 9.29;
  double y = 8.69;
  
  double diff = floor((x - y)*100+0.5)/100.0;
  </code></pre>
  
  <p>this gives me diff as 0.6 but I need it as 0.60 (two decimal points)
  Could someone please help me with this?</p>