Java decimal separator

Is there a way to configure Java decimal separators with JVM options? I know how to do this at the code level, but unfortunately this time I can’t touch it.

I have: "1,322.03"and I'm sorry there wasn’t any configuration that looked like 1.322,03.

There are NLS_NUMERIC_CHARACTERS in Oracle, which are solved for me in most cases, but I got lost in this.

thank.

e.

+3
source share
1 answer

Your result looks like this: DecimalFormatused depending on the language (for example, NumberFormat.getInstance().format(value)or similar).

, , . , , . Java (, GNU).

-Duser.language=de -Duser.country=DE , . ( , , .) , .

+1

Source: https://habr.com/ru/post/1765647/


All Articles