Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert decimal to float in python

# Method 1:
float_number = float (decimal_number)

# Method 2:
float_number = decimal_number * 1.0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #decimal #float #python
ADD COMMENT
Topic
Name
2+8 =