Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

round off to two decimal places python

format(1.4000,'.2f') #to include zeroes while rounding to 2 decimals
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decimal #places #python
ADD COMMENT
Topic
Name
5+3 =