Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert to percentage

your_value = 1/3.0
print('{:.1%}'.format(your_value)) # Change the "1" to however many decimal places you need
# Result:
# '33.3%'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #percentage
ADD COMMENT
Topic
Name
8+6 =