更新时间:2022-04-23 23:25:29
int(f+0.5)如果> = .5
int(f+0.5)
go - 在将float转换为int时如何舍入到最近的int
在Go中将float转换为int时如何舍入到最接近的int