Question: what is the difference between e and g?
Answer: The exponential form is usually used if the value of the constant is either too small or too large. ... The only difference between %g and %G is that they will print the "e" of the exponential form in lower case and upper case respectively. It will print in Fractional form when the constant is between .