I got such a quick (and good) response to my last question that I thought I'd post another that's been bugging me.
When printing a number in exponential format (%e) using printf or one of its friends, three digits are used for the exponent:
I would like to change this behavior so that the exponent only uses as many digits as it needs:
I've looked, but this feature does not appear to be built into any of the format modifiers/switches. Am I missing something and/or is there an easy way to do this?