33,311
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <math.h>
int main()
{
printf("%.15f\n", pow(3.14159265, 2.5));
printf("%.15f\n", (float)pow(3.14159265, 2.5));
printf("%.15f\n", pow(3.14159265f, 2.5f));
printf("%.15f\n", (float)pow(3.14159265f, 2.5f));
return 0;
}
17.493418277652001 // xyz均为double
17.493417739868164
17.493419544621673
17.493419647216797 // xyz均为float