How to Create Floating-Point Number Type Variables in Python


In this example we will show how to create floating-point number type variables in Python.

Source Code

a = 5.5
b = 555555.55555
c = -55.55

print(type(a))
print(type(b))
print(type(c))

Output:



Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments