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
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #double #number #print #digit #decimal #point
ADD COMMENT
Topic
Name
5+4 =