Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 1
How to print a number with 2 zeros after a point?
Input: a=2.5, b=4, output: c=a*b, c= 10.00
1 Réponse
+ 4
print(f'{42}.00')
Input: a=2.5, b=4, output: c=a*b, c= 10.00