我想只保留double 的小数点后两位,不要四舍五入。 ((int)(dtemp *100))/100.0;这样的话考虑到int范围可能会溢出。 ((int)(dtemp *100 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交