Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

F-Strings decilamal places

#!/usr/bin/env python3

a = 300

# hexadecimal
print(f"{a:x}")

# octal
print(f"{a:o}")

# scientific
print(f"{a:e}")
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #decilamal #places
ADD COMMENT
Topic
Name
5+8 =