DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit