Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

double number print 3 digit after decimal point in c++

//use #include<iomanip>
cout<<"Result = "<<fixed<<setprecision(3)<<result;//like Result = 2.434
 
PREVIOUS NEXT
Tagged: #double #number #print #digit #decimal #point
ADD COMMENT
Topic
Name
6+7 =