【问题标题】:round numbers to non-decimal numbers [duplicate]四舍五入到非小数[重复] 【发布时间】:2022-01-23 18:12:15 【问题描述】: 如何四舍五入以下数字: 16554.2644 和 2238.987 到: 16550 和 2240 和 16560 和 2230 谢谢 【问题讨论】: R round to nearest .5 or .1 Rounding numbers to nearest 10 in R 标签: r numbers rounding 【解决方案1】: 将数字除以 10,使用 floor 或 ceil 四舍五入,然后乘以 10。 【讨论】: