F-String Formatting Studio
Stored Variable (value)
Format Specifier
(None)
:.2f (2 decimal places)
:.0f (0 decimal places)
:.2e (Scientific)
:.1% (Percentage)
Output Screen
print(f"Result: {value}")
Result: 12.3456
Computer Memory
value =
12.3456
Without a format specifier, the f-string displays the full raw number.