To force a number to show specific number of decimal places in a python f-string, use this formatting code:
>>> print(f"{45.2:.02f}")
45.20To force leading zeros when printing an integer, user this code:
>>> print(f"{3:02d}")
03Python f-string cheat sheet provides a many different number formatting examples.
fstring.help provides more example including non-numeric formatting.