摘要: 一、概述官方的math 包中提供了取整的方法,向上取整math.Ceil() ,向下取整math.Floor() 二、用法package mainimport ( "fmt" "math")func main(){ x := 1.1 f... 阅读全文
posted @ 2019-04-08 18:52 byfei 阅读(438) 评论(0) 推荐(0) 编辑