aeturrell opened this issue 3 years ago · 0 comments
Use something like
i = 32.1123 print(f'{float(f"{i:.2g}"):g}')