Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

round to 2 decimal places

a = 2.154327
a_2_decimal = "{:.2f}".format(a)
Source by pythonguides.com #
 
PREVIOUS NEXT
Tagged: #decimal #places
ADD COMMENT
Topic
Name
7+5 =