Using the f-string floating formatting I get the following results:
f"{1.34 :.2f}" # 1.34
f"{1.30 :.2f}" # 1.30
f"{1.00 :.2f}" # 1.00
What I want however is to remove all trailing zeros:
f"{1.34 :.2f}" # 1.34
f"{1.30 :.2f}" # 1.3
f"{1.00 :.2f}" # 1
Using complex functions I can strip zeros and possibly the decimal sign. But it should be a common f-string notation, but I can't find it.