SyntaxFix
Write A Post
Hire A Developer
Questions
Include the type specifier in your format expression:
>>> a = 10.1234 >>> f'{a:.2f}' '10.12'