title: How do you round off decimal places in C++?
body: <p>I need help rounding off a float value to one decimal place. </p>
  
  <p>I know <code>setprecision(x)</code> and <code>cout &lt;&lt; precision(x)</code>. Both of which work if I wanted to round the entire float, but I am only interested in rounding the decimals to the tenths place. </p>