format number differences in python

Solutions on MaxInterview for format number differences in python by the best coders in the world

showing results for - "format number differences in python"
Regina
18 Nov 2020
1# make the total string size AT LEAST 9 (including digits and points), fill with zeros to the left
2'{:0>9}'.format(3.499)
3# >>> '00003.499'
4