摘要: std::round 函数,它属于 <cmath> 头文件,专门用于四舍五入操作。 注意: 当小数部分为 0.5 时,向远离零的方向舍入(例如,-2.5 会变为 -3)。 阅读全文
posted @ 2025-04-13 12:28 double64 阅读(396) 评论(0) 推荐(0)