I'm writing to a text file where i want a field of a formatted string to be left-justified AND have 2-digit float precision.
Sample input (does not work):
txt = "We have {:.2f <8} chickens."
print(txt.format(0.123124234123412341324))
Desired output:
0.12 (left justified, with 8 spaces)
{:<8.2f}
?