| <<< Floating-point Precision | Index | Floating-point Example >>> |
There are three possible ways to format floating point values:
cout << value // default
cout << fixed << value
cout << scientific << value
In fixed and scientific notations precision specifies exactly how many digits to display after the decimal point, even if they are trailing decimal zeros.
| <<< Floating-point Precision | Index | Floating-point Example >>> |