Answers for "precision of fixed in c++"

C++
3

set precision with fixed c++

int x = 109887;
cout << fixed << setprecision(3) << x;
Posted by: Guest on July-06-2020
0

precision of fixed in c++

#include <iomanip> 
// the rest of the code
double a = 4.032;
cout << fixed << setprecision(2);
cout << a;
// done;
Posted by: Guest on March-12-2021

Browse Popular Code Answers by Language