title: Value Representation Issue
body: <p>The input for a,b,c are 25,27.5,40.
  The correct answer that should be displayed is 754573.2, but I continue getting 754573.17 despite reading about how to solve this. I also am not allowed to use setprecision() to solve the issue.
  What am I doing wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
  
      double a, b, c;
      double g;
      double v;
      double ci = 123.00; 
      double i = 15;
  
  
  
      cout &lt;&lt; "enter the 3 values: ";
      cin  &gt;&gt; a &gt;&gt; b &gt;&gt; c;
  
      a = a * i;
      b = b * i;
      c = c * i;
      v = a * b * c;
      g = static_cast&lt;int&gt;(v / ci * 100 + .5) / 100.0;
  
      cout &lt;&lt; "The answer is " &lt;&lt; g;
  
      return 0;
  }
  </code></pre>
  
  <p>Thanks everyone! I got it to work.</p>