Force point (“.”) as decimal separator in java

后端 未结 7 957
一向
一向 2020-11-29 05:04

I currently use the following code to print a double:

return String.format(\"%.2f\", someDouble);

This works well, except that Java uses my

7条回答
  •  渐次进展
    2020-11-29 05:38

    Change the language, it worked for me.

    How to set eclipse console locale/language How to set eclipse console locale/language

提交回复
热议问题