JAL-4023 use %g for distances (scientific notation for very small or large values)