问题
i am working on an apps for calculating fuel...
i need to know how i can power a number in 10?
the Excel code is "10^1.5"
回答1:
If you mean in XCode, you have to #include <math.h>
and then you can use pow
:
double res=pow(10, 1.5);
来源:https://stackoverflow.com/questions/5810108/in-10-power-calculation-power-calculations