J2ME - How to convert double to string without the power to 10 representation (E-05)

后端 未结 4 1471
故里飘歌
故里飘歌 2021-01-18 08:15

I have a double value . I want to store it in String with out E notation (in J2ME)

Example

Double value 6.887578324E9 Want to show as 6887578342

4条回答
  •  误落风尘
    2021-01-18 09:02

    Normally you can use piece of code below, but not for j2me.

    BigDecimal.valueOf(doubleVariable)
    

提交回复
热议问题