how to convert string to float with 2 decimal in python code example
Example 1: convert string to float python
>>> number='1.1'
>>> float(number)
1.1
Example 2: convert string to float python
string = "88.88"
print(float(string))
# output
# 88.88