unsigned int pos; float dir=0.3; pos=((dir<0.0)?(static_cast<unsigned int>(-dir * 32767.0 + 0.5)): pos=((dir<0. 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交