projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Store common frequencies in library version-independent form
[fw/altos]
/
altoslib
/
AltosParse.java
diff --git
a/altoslib/AltosParse.java
b/altoslib/AltosParse.java
index a8b02b5652611433420350294e35c2e5725fc825..12499b7b064ba678618a4eea42884a1a335b6f51 100644
(file)
--- a/
altoslib/AltosParse.java
+++ b/
altoslib/AltosParse.java
@@
-15,7
+15,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 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.*;
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();
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+");