Java: directly increase the exponent of a double in order to multiply by a power of two

前端 未结 0 415
春和景丽
春和景丽 2021-02-06 08:33

I want to increase the exponent of a primitive double d, thus multiplying it by a power of two, for example 2^64.

I can do d *= math.pow(2

相关标签:
回答
  • 消灭零回复
提交回复
热议问题