aeturrell/skimpy

Round numbers to sensible number of significant figures

aeturrell opened this issue · 0 comments

Use something like

i = 32.1123
print(f'{float(f"{i:.2g}"):g}')