Conversion from Long to Double in Java

前端 未结 8 437
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 01:07

Is there any way to convert a Long data type to Double or double?

For example, I need to convert 15552451L to a

8条回答
  •  别那么骄傲
    2021-01-31 01:45

    I think it is good for you.

    BigDecimal.valueOf([LONG_VALUE]).doubleValue()

    How about this code? :D

提交回复
热议问题