DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python3 print format float
numbers = [23.23, 0.123334987, 1, 4.223, 9887.2] for number in numbers: print(f'{number:.4f}')
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#print
#format
#float
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit