From: Bill Kuker Date: Tue, 14 Feb 2012 18:09:41 +0000 (+0000) Subject: Make ENG export always use US locale. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b9e67be3a1cfd4cb0d0b773546c8d016da498dc6;p=sw%2Fmotorsim Make ENG export always use US locale. Thanks Louis Schreyer (info@aquarix.de) --- diff --git a/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java b/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java index bd59bc9..35f8965 100644 --- a/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java +++ b/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java @@ -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();