Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

precision of fixed in c++

#include <iomanip> 
// the rest of the code
double a = 4.032;
cout << fixed << setprecision(2);
cout << a;
// done; 
 
PREVIOUS NEXT
Tagged: #precision #fixed
ADD COMMENT
Topic
Name
6+5 =