Menu principal
Moteur de recherche
Rechercher
Menu principal
Forum
Bureautique
Développement
Internet
Jeux vidéo
Matériel
Réseau
Vidéo/TV
Virus/Sécurité
CCM
CCM - Comment Ça Marche - Communauté informatique
Moteur de recherche
Rechercher
Connexion
Posez votre
question
Informatique
Mobile
Applis & Sites
Image & Son
Maison
Securité
Téléchargement
Forum
Bureautique
Développement
Internet
Jeux vidéo
Matériel
Réseau
Vidéo/TV
Virus/Sécurité
Emploi
Forum
View original (French)
[C] float with 2 decimal places
jc
-
omam4701 -
23 Feb 2016 at 12:13
Hi!
I need a little help with C.
As my title suggests, I would like to know how to convert a number like 5.220000000 to 5.22
Do you have any ideas?
Thanks
Configuration:
Windows Vista Safari 525.19
Show more
Liens connexes:
Javascript Round to 2 Decimal Places
2 decimals after comma Fusion Word Excel
Excel / decimals after the decimal point
Count the number of decimals (Excel version)
Excel: Round or truncate to 3 decimal places
Word – Mail Merge with rounding to 2 decimal places
1 réponse
Réponse 1 / 1
loupius
If it's for display; printf("%.2f", number);
jc
thank you!!!!!!!!!!!!!!!!
omam4701
Thank you very much.
Dernières discussions traduites
Texture issues in enshrouded
le 2 Jun
Driver his
le 30 May
Peritel to hdmi conversion
le 30 May
How to access the bios on a compaq notebook
le 30 May
Dsi won't turn on anymore
le 30 May
Search for a song with the lyrics
le 30 May
Left mouse click, touchpad click inactive
le 30 May
Codes stronghold crusader
le 30 May
Stuck computer system repair
le 30 May
Disable write protection mp3 player
le 30 May
Autres langues
🇫🇷
Français