Java Math.pow(10,12) cast to int incorrect

前端 未结 0 483
灰色年华
灰色年华 2020-12-10 06:15

Pretty simple: ((int) Math.pow(10, 12)) gives me 2147483647 (which is Integer.MAX_VALUE)

(int) Math.pow(10, 12)

I got this from my code and a

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