I was wondering if there is a way in Python > 3.6, using f-strings, to achieve the following: I have a number 2451545.00000
which I would like to print as %.5f
but at the same time I'd like to have it centre justified e.g. using f-string {' '}^{20}
. Is there a way to achieve that in a single command e.g., {2451545.00000:.5{' '}^{20}}
or something like that?
Thank you in advance!