hi ,
i saw the following link http://www.cplusplus.com/reference/iostream/manipulators/setprecision/
and tried it in the same way...
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
float a=3.14;
cout<<fixed<<setprecision(4)<<a;
}
so my output should be:3.1400.
but when i execute the above code.. i am getting the error as fixed undeclared..