altoslib: Store common frequencies in library version-independent form
[fw/altos] / altoslib / AltosParse.java
index ae88182de638e8c3d4e2c6dc1b66789c94708d00..12499b7b064ba678618a4eea42884a1a335b6f51 100644 (file)
@@ -53,6 +53,10 @@ public class AltosParse {
                }
        }
 
                }
        }
 
+       public static String format_double_locale(double number) {
+               return nf_locale.format(number);
+       }
+
        public static double parse_double_net(String str) throws ParseException {
                try {
                        return nf_net.parse(str.trim()).doubleValue();
        public static double parse_double_net(String str) throws ParseException {
                try {
                        return nf_net.parse(str.trim()).doubleValue();
@@ -61,6 +65,10 @@ public class AltosParse {
                }
        }
 
                }
        }
 
+       public static String format_double_net(double number) {
+               return nf_net.format(number);
+       }
+
        public static double parse_coord(String coord) throws ParseException {
                String[]        dsf = coord.split("\\D+");
 
        public static double parse_coord(String coord) throws ParseException {
                String[]        dsf = coord.split("\\D+");