Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change int to four decimal places in python

number = 12345

print(f"{number:,.4f}")

#output >>> 12,345.0000
 
PREVIOUS NEXT
Tagged: #change #int #decimal #places #python
ADD COMMENT
Topic
Name
1+2 =