Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python f string round

x = 3.14159265
print(f'pi = {x:.2f}')
# 3.14
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string
ADD COMMENT
Topic
Name
7+4 =