gpt4 book ai didi

objective-c - objective-c 中的 "to the power of"符号是什么

转载 作者:太空狗 更新时间:2023-10-30 03:14:06 26 4
gpt4 key购买 nike

对于我正在制作的程序,我需要符号的幂,但是当我尝试使用通用符号 (^) 时,它无法识别?

谁能告诉我应该用什么符号代替?

最佳答案

没有 pow 符号。使用 C 函数 pow(x,y);

double res = pow(5.0,2.0); //25  

BSD库函数手册

姓名: pow -- 幂函数

概要:

 #include <math.h>

double pow(double x, double y);

关于objective-c - objective-c 中的 "to the power of"符号是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14063242/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com