我试图非常规地舍入 float64 变量中的所有数字。例如:
3.4444445 --> 3.5
我想在不将其转换为字符串的情况下执行此操作!
rounding go
go ×1
rounding ×1