Skip to content

Commit

Permalink
Merge pull request #10 from charlesfleche/fix-1181
Browse files Browse the repository at this point in the history
Forces double conversions in Locale.US
  • Loading branch information
mitchellsundt committed Dec 21, 2015
2 parents 698c3e9 + 1eb322c commit 1ed93d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package org.odk.collect.android.widgets;

import java.text.NumberFormat;
import java.util.Locale;

import org.javarosa.core.model.data.DecimalData;
import org.javarosa.core.model.data.IAnswerData;
Expand Down Expand Up @@ -70,7 +71,7 @@ public DecimalWidget(Context context, FormEntryPrompt prompt, boolean readOnlyOv

Double d = getDoubleAnswerValue();

NumberFormat nf = NumberFormat.getNumberInstance();
NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);
nf.setMaximumFractionDigits(15);
nf.setMaximumIntegerDigits(15);
nf.setGroupingUsed(false);
Expand Down

0 comments on commit 1ed93d2

Please sign in to comment.