fork download
#include <iostream>
using namespace std;

int main() {
	double x = 31.4659265;
	std::cout << x << std::endl;
	std::cout.precision(3);
	std::cout << x << std::endl;
	return 0;
}
Success #stdin #stdout 0.01s 5264KB
stdin
Standard input is empty
stdout
31.4659
31.5