Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Setting a number of decimals on a float on C++

cout.setf(ios::fixed);
cout.precision(2);
 
PREVIOUS NEXT
Tagged: #Setting #number #decimals #float
ADD COMMENT
Topic
Name
7+2 =