How to calculate fractional power of a number in java

前端 未结 0 414
猫巷女王i
猫巷女王i 2020-12-05 17:58

I need to calculate fractional power of a number, but its giving me NaN.

double a = -25045.780485516327;
double b = 0.04024792612003285;

Math.pow(a, p);
// o         


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