#include
#include
using namespace std;
int main()
{
int num = 45;
cout << "it is: " << fixed << setprecision(2) << num << " the end"<< endl;
return 0;
}
set precision with fixed c++
int x = 109887;
cout << fixed << setprecision(3) << x;
setprecision in c++
#include
#include
using namespace std;
int main()
{
int i = 18;
cout<