Make ENG export always use US locale.
authorBill Kuker <bkuker@billkuker.com>
Tue, 14 Feb 2012 18:09:41 +0000 (18:09 +0000)
committerBill Kuker <bkuker@billkuker.com>
Tue, 14 Feb 2012 18:09:41 +0000 (18:09 +0000)
Thanks Louis Schreyer (info@aquarix.de)

src/com/billkuker/rocketry/motorsim/io/ENGExporter.java

index bd59bc93728804e8297937878bfae5574bcb3df7..35f896547523f3baef741907a91255f4eadae10b 100644 (file)
@@ -5,7 +5,9 @@ import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
 import java.text.NumberFormat;
+import java.util.Locale;
 
 import javax.measure.quantity.Duration;
 import javax.measure.quantity.Force;
@@ -34,7 +36,7 @@ public class ENGExporter {
 
                ICylindricalChamber cha = (ICylindricalChamber) b.getMotor().getChamber();
 
-               NumberFormat nf = new DecimalFormat("0.####");
+               NumberFormat nf = new DecimalFormat("0.####", new DecimalFormatSymbols(Locale.US));
 
                StringBuffer out = new StringBuffer();