Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
Header Files
<iomanip>
 setprecision

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Standard Library
setprecision

Sets the precision for floating-point values.

T5 setprecision(
   streamsize _Prec
);
_Prec

The precision for floating-point values.

The manipulator returns an object that, when extracted from or inserted into the stream str, calls str.precision(_Prec), and then returns str.

See setw for an example of using setprecision.

Header: <iomanip>

Namespace: std

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker