well data types have limits you know.
and maybe that number that you get is the actual
answer if you want trailing zeros do this after setprecision:
Code:#include <iostream.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <iomanip.h> int main() { int a; cout << setprecision(250); cout << setiosflags(ios::showpoint); double pi = 1/2.545584412*8; cout << pi; cout << "\n"; system("pause"); return 0; }