int
float
bool
Converts a value to a floating-point number.
float(x?)
Enter values below to update the example in real time.
print
print(float("3.14")) # 3.14 print(float(42)) # 42.0