Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Parse string into integer

balance_str = "1500.4"
balance_float = float(balance_str)

# print the type
print(type(balance_float))

# print the value
print(balance_float)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Parse #string #integer
ADD COMMENT
Topic
Name
5+2 =