title: Using Math::Round
body: <p>I have the following visual c++ code</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;math.h&gt;
  
  using namespace std;
  
  int Main()
  {
      double investment = 0.0;
      double newAmount = 0.0;
      double interest = 0.0;
      double totalSavings = 0.0;
      int month = 1;
      double interestRate = 0.065;
  
      cout &lt;&lt; "Month\tInvestment\tNew Amount\tInterest\tTotal Savings";
      while (month &lt; 10)
      {
              investment = investment + 50.0;
          if ((month % 3 == 0))
          {
            interest = Math::Round((investment * Math::Round(interestRate/4, 2)), 2);
          }
          else
          {
            interest = 0;
          }
          newAmount = investment + interest;
          totalSavings = newAmount;
          cout &lt;&lt; month &lt;&lt; "\t" &lt;&lt; investment &lt;&lt; "\t\t" &lt;&lt; newAmount &lt;&lt; "\t\t" &lt;&lt; interest &lt;&lt; "\t\t" &lt;&lt; totalSavings;
          month++;
      }
    string mystr = 0;
    getline (cin,mystr);
    return 0;
  }
  </code></pre>
  
  <p>But its giving me problems using Math::Round, truly I don't know how to use this function using visual c++</p>