setprecision(16) code example
Example: setprecision in c++
#include<iomanip>
#include <iostream>
using namespace std;
int main()
{
int num = 45;
cout << "it is: " << fixed << setprecision(2) << num << " the end"<< endl;
return 0;
}
#include<iomanip>
#include <iostream>
using namespace std;
int main()
{
int num = 45;
cout << "it is: " << fixed << setprecision(2) << num << " the end"<< endl;
return 0;
}