C++ decimal | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

C++ decimal

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

7th Jun 2018, 2:37 PM
Heavenell
Heavenell - avatar
2 Antworten
+ 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