Skip to content

Commit 7fcc484

Browse files
Remove grouping in number formatting for csv results export (#196)
Signed-off-by: Franck LECUYER <[email protected]>
1 parent b22412d commit 7fcc484

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/gridsuite/securityanalysis/server/dto/LimitViolationDTO.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public static LimitViolationDTO toDto(AbstractLimitViolationEntity limitViolatio
4545
}
4646

4747
private static String convertDoubleToLocale(Double value, String language) {
48-
return NumberFormat.getInstance(language != null && language.equals("fr") ? Locale.FRENCH : Locale.US).format(value);
48+
NumberFormat nf = NumberFormat.getInstance(language != null && language.equals("fr") ? Locale.FRENCH : Locale.US);
49+
nf.setGroupingUsed(false);
50+
return nf.format(value);
4951
}
5052

5153
public List<String> toCsvRow(Map<String, String> translations, String language) {

0 commit comments

Comments
 (0)