Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
The result should be 2.0 6.0 but it's 2.00000 6.00000 in C. what to do?
The result should be 2.0 6.0 but it's 2.00000 6.00000 in C. what to do?
1 Antwort
+ 4
Customize number of digits past the decimal point by specifying precision. Look particularly at the section covering precision in the following page
http://www.cplusplus.com/reference/cstdio/printf/