My program only shows two decimal precision
For example I put:
double a;
a=1/800;
cout<<a<<endl;
It only show 0.00
Please help me!!!
Last edited on
use "setprecision" and include <iomanip>
I tried, it displays more precision like this: 0.0000000000
It should be 0.00125
Ok, use double s=1.0/800.0;
;)