Format Specifier %g
This specifier is used to output a flex as either %e or %f does - using the method that can
output all significant digits in the shortest form. The size setting is the number of significant
digits to output.
%g does not output insignificant decimal digits. Using %G will cause the 'e' character
to be outputted in uppercase when scientific notation is used.