DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
fstring number format python
num = 10.4999 print(f"The formatted number is {num:.2f}") # output: The formatted number is 10.49
PREVIOUS
NEXT
Tagged:
#fstring
#number
#format
#python
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit