cast string as float code example
Example 1: python cast to float
float('1.234')
Example 2: convert string to float python
string = "88.88"
print(float(string))
# output
# 88.88
float('1.234')
string = "88.88"
print(float(string))
# output
# 88.88