The power operator in Java?

后端 未结 1 599
眼角桃花
眼角桃花 2021-01-12 02:13

When I run the following Visual Basic code :

Dim b As Double
b = (2 ^ 16 - 1) * Math.Sqrt(Math.Sqrt((a / (2 ^ 8 - 1))))

(Assuming a

相关标签:
1条回答
  • 2021-01-12 02:55

    ^ is XOR operator in java. Use Math.pow(2,8) which is 2 ^ 8 in Visual Basic.

    0 讨论(0)
提交回复
热议问题