In 10. power / calculation / Power calculations

半世苍凉 提交于 2020-01-09 05:34:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!