Padding floats before decimal point
I have a float. I want to format said float so that it is zero-padded to two digits before the decimal point. The number of digits after does not matter (yet). You can zero-pad integers with "%.2d" % i. However, "%.2f" % f applies to precision after the decimal point. The manual doesn't seem to state any way to get this to apply to the digits before it. Is there any way?
