Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
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 Réponse
+ 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/