13,420
edits
Changes
→PART 3 - String Formatting Advanced Features
print('{0:+f}\n{1:+f}'.format(number1, number2)) # The space before the f lines up positive and negative numbers
</source>
:#Combining fixed point positions and sign together look like can be performed by issuing the following by issuing:<source>
print('{0:+.2f}'.format(number1))
print('{0:+.2f}'.format(number2))