#include<stdio.h> void main() { double x; x = 3.1415926; x = x * 1000; x = x + 0.5; x = (int)x; x = x / 1000; printf("%lf", x); }