Code example for DecimalFormatSymbols

0
    { 
        // “DDDMM.MMMMM” 
        int degrees = (int) coord;
        double minutes = (coord - degrees) * 60;
 
        DecimalFormat df = new DecimalFormat("00.00000", new DecimalFormatSymbols(Locale.US));
        StringBuilder rCoord = new StringBuilder();
        rCoord.append(degrees);
        rCoord.append(df.format(minutes));
 
        return rCoord.toString();
    } 
 
 
    public static String NMEACheckSum(String msg)
    { 
        int chk = 0;
        for (int i = 1; i < msg.length(); i++)
        { 
            chk ^= msg.charAt(i);
        }