NumberFormatException when parsing Hindi numbers

后端 未结 5 1853
走了就别回头了
走了就别回头了 2021-01-25 05:33

I have an android application and today I have got a crash report which contains this: \"NumberFormatException\"

Th

5条回答
  •  一整个雨季
    2021-01-25 06:10

    Use

     BigDecimal bigDecimal = new BigDecimal(YOUR_VALUE);
    

    before applying the regex, as the BigDecimal supports 12 integers, 12.35 decimal, and 12 $ currency, 12% percentage and its localized value.

提交回复
热议问题