change float formats from %f to %g