How to output with 3 digits after the decimal point with the C++ stream?

0
1727
how-to-show-float-digit-after-decima-point

Decimal point show in C Plus Plus is very important. Many people don’t know how to show float digits after decimal point.

Here you will learn how to output with 3 digits after the decimal point with C++ program.

Output

Checkout the output of my programs. I used online GDB to compile my C plus plus code.

Here input value 113 and output with 3 digits after the decimal point is 113.000