public static void startActivityCache(final Context context, final Geocache cache) {
        final Intent navigateIntent = new Intent(context, CompassActivity.class);
        navigateIntent.putExtra(Intents.EXTRA_GEOCODE, cache.getGeocode());
        context.startActivity(navigateIntent);
    }
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