阅读背景:

使用c中的math.h函数进行双转换到int转换

来源:互联网 
dataBuf[1] = acos(0.130f);

This is the code I'm running but when I print out the result, it comes out as 1 instead of 82. dataBuf is an int16_t array. All the other math.h functions work fine with the conversion but the trig ones don't work.This is the code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: