We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 051e561 commit c2a071eCopy full SHA for c2a071e
1 file changed
src/main/java/com/mindee/parsing/SummaryHelper.java
@@ -2,7 +2,9 @@
2
3
import com.mindee.parsing.standard.LineItemField;
4
import java.text.DecimalFormat;
5
+import java.text.DecimalFormatSymbols;
6
import java.util.List;
7
+import java.util.Locale;
8
import java.util.stream.Collectors;
9
10
/**
@@ -21,7 +23,7 @@ public static String formatAmount(Double amountValue) {
21
23
if (amountValue == null) {
22
24
return "";
25
}
- DecimalFormat df = new DecimalFormat("0.00###");
26
+ DecimalFormat df = new DecimalFormat("0.00###", new DecimalFormatSymbols(Locale.US));
27
df.setMinimumFractionDigits(2);
28
df.setMaximumFractionDigits(5);
29
return df.format(amountValue);
0 commit comments