Answers for "float number in python"

2

what does float mean in python

V = float(input('enter a number= '))
print(V)
#it goes into a decimal 
#therefore float is used to changes the number to decimal
COPY THIS CODE TO CHEACK
Posted by: Guest on September-26-2021
2

float to int in python

# convert float to int 

int(2.0) #output :2
Posted by: Guest on May-27-2020

Browse Popular Code Answers by Language