title: Xcode: use of undeclared identifier setprecision (C++)
body: <p>I'm trying to implement C++ code on my project and I'm trying to format float number with 2 decimals. Here is my code:</p>
  
  <pre><code>float number = 15.101010101010;
  cout &lt;&lt; fixed &lt;&lt; setprecision(2);
  </code></pre>
  
  <p>But I'm getting this error:</p>
  
  <pre><code>Use of undeclared identifier setprecision
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/qfJ0e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qfJ0e.png" alt="enter image description here"></a>
  Any of you knows why I'm getting this error or how can fixed?</p>
  
  <p>I'll really appreciate your help.</p>