Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python A string float numeral into integer

balance_str = "1500.34"
balance_int = int(float(balance_str))

# print the type
print(type(balance_int))

# print the value
print(balance_int)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #A #string #float #numeral #integer
ADD COMMENT
Topic
Name
2+8 =