private static String formatDecimalFloat(final float value) {
        final String formattedValue = String.format(Locale.US, "% 4.0f", value);
        if (formattedValue.endsWith("-0")) {
            return "   0";
        }
        return formattedValue;
    }
formats a float to a decimal with length 4 and no places behind comma. Handles "-0" case.
main/src/main/java/cgeo/geocaching/CompassActivity.java