我用asin来计算角度.代码如下:
double FindAngle(const double theValue) { return asin(theValue); }
当参数theValue = -0.0时,FindAngle返回-0.0(有符号零).现在,我如何摆脱返回值的减号.
c c++ floating-point
c ×1
c++ ×1
floating-point ×1