altoslib: Store common frequencies in library version-independent form
[fw/altos] / altoslib / AltosParse.java
index a8b02b5652611433420350294e35c2e5725fc825..12499b7b064ba678618a4eea42884a1a335b6f51 100644 (file)
@@ -15,7 +15,7 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_6;
+package org.altusmetrum.altoslib_11;
 
 import java.util.*;
 import java.text.*;
@@ -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();
@@ -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+");