If possible, i want to format (via f-string or any older way) a float, so that it's thousandths get separated by underscores.
I know you can do:
print(f"{10000000:_}")
# 10_000_000
But i want:
print(f"{7.012345678:<something>}")
# 7.012_345_678
If possible, i want to format (via f-string or any older way) a float, so that it's thousandths get separated by underscores.
I know you can do:
print(f"{10000000:_}")
# 10_000_000
But i want:
print(f"{7.012345678:<something>}")
# 7.012_345_678
Copyright © 2021 Jogjafile Inc.
Hopefully someone has a better idea than I do, but if worse comes to worse you could do something like this: