I need to format a float to the format +-00.00, tried the basic string formatting but can\'t get the leading + or - sign or two leading 0s if the value is fractional, any po
Use '%+06.2f' to set the width and precision appropriately. The equivalent using new-style format strings is '{:+06.2f}'.format(n) (or '{0:+06.2f}' if your version of Python requires the positional component).