Hello,
Is it possible to format a float number, but without displaying decimals
if it is an integer ?
For example with "%.2f",
I get "10.50" for 10.5, but I would like "10" for 10 and not "10.00"
Thanks.
Is it possible to format a float number, but without displaying decimals
if it is an integer ?
For example with "%.2f",
I get "10.50" for 10.5, but I would like "10" for 10 and not "10.00"
Thanks.
Aucun commentaire:
Enregistrer un commentaire