Bonjour,
je cherche à formater l'affichage d'un float à 1 chiffre après la virgule.
ex :
quand je fais ça j'obtiens : 12.50000 et j'aimerais obtenir 12.5
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 int toto=125; printf("%f\r\n",(float)(toto)/10);
Comment puis je faire ça ?
Merci pour votre aide,
Alex
Partager