+ 3

C++ decimal

how can i make the output have 2 decimal ? on C++

7th Jun 2018, 2:37 PM
Heavenell
Heavenell - avatar
2 odpowiedzi
+ 1
Gitu aja gk tau cupu lo!
19th Aug 2019, 4:16 AM
Arfandy Adimurfiq
Arfandy Adimurfiq - avatar
+ 6
#include<iomanip> : : : cout << setprecision(3) << 2.444334 ; //output: 2.44
7th Jun 2018, 2:43 PM
‎ ‏‏‎Anonymous Guy