Format number using decimal format in kotlin

后端 未结 4 820
渐次进展
渐次进展 2021-01-17 11:46

I am facing an issue where I need to do some calculations with a number like for example 5000,00 multiplied it by (1,025^3).

So in

4条回答
  •  感动是毒
    2021-01-17 11:57

    Try val dec = DecimalFormat("#.###,00"). For examples of DecimalFormat check this link.

提交回复
热议问题