Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to print fixed places after decimal point in c++

 cout << fixed << setprecision(n)<<variable; //n is number of places needed after decimal point
 
PREVIOUS NEXT
Tagged: #print #fixed #places #decimal #point
ADD COMMENT
Topic
Name
1+6 =