python float

Publié le: 11 juin 2021
sur la chaîne: 2Source Fort
14
0

Floats are used in Python to represent numbers that aren't integers (whole numbers).


Some examples of numbers that are represented as floats are 0.5 and -7.8237591.


They can be created directly by entering a number with a decimal point, or by using operations such as division on integers.
print( 3/4 )
print( 0.42 )


As you saw previously, dividing any two integers produces a float.
A float is also produced by running an operation on two floats, or on a float and an integer.
print( 8 / 2 )

print( 6 * 7.0 )

print( 4 + 1.65 )


Sur cette page du site, vous pouvez voir la vidéo en ligne python float durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur 2Source Fort 11 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 14 fois et il a aimé 0 téléspectateurs. Bon visionnage!