Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

string float to round to 2dp python

a_float = 3.14159

limited_float = round(a_float, 2)
str_float_2dp = str(limited_float)
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #string #float #python
ADD COMMENT
Topic
Name
1+7 =