0
How to display float value upto two decimal places in c++?
Output format.
3 Respuestas
+ 1
Use setprecision() function as cout << setprecision(2) << 23.456 .So the output is 23.46 because this function will round off. But in order to use it we have to include header file <iomanip.h> .
0
Without a targeting language, you wouldn't have answer ^^
0
h