Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
5+2 =