| <<< Unformatted I/O Summary | Index | Floating-point Precision >>> |
Floating-point values by default use fixed-point notation:
#include <iostream>
int main()
{
const double PI = 3.1415926;
std::cout << PI << '\n';
return 0;
}
/*
Output: 3.14159
*/
| <<< Unformatted I/O Summary | Index | Floating-point Precision >>> |