[C++ Builder] Comment n afficher ke 2 chiffres apres la virgule(float)
seb90
Posté le 15-07-2002 à 13:49:41
Comment n afficher ke 2 chiffres apres la virgule avec un float ??
c pour afficher ds un edit ( la ça m affiche par exemple 54,564564564 et moi je voudrais 54,56 ) merci
Publicité
Posté le 15-07-2002 à 13:49:41
*syl*
--> []
Posté le 15-07-2002 à 13:52:28
Edit1->Text = FormatFloat("0.00", ton_flottant);
seb90
Posté le 15-07-2002 à 16:42:25
trop cool merci!!!!
seb90
Posté le 15-07-2002 à 17:07:04
Ca marche bien avec les edit mais par contre pour les captions c pas ça qqn saurait comment ça marche avec des captions ?