only output significant digits in float formatting