Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python format new

a = 1.2345
print(f"a = {a:.2f}")
#Output: a = 1.23
 
PREVIOUS NEXT
Tagged: #python #format
ADD COMMENT
Topic
Name
2+5 =