1.func Abs(x float64) float64
//求绝对值
fmt.Println(math.Abs(-1.11))//1.11
2.func Pow(x, y float64) float64
//求x的n次方
fmt.Println(math.Pow(2, 16))//65536
3.func Sqrt(x float64) float64
//取x的开平方
fmt.Println(math.Sqrt(64))//8
4.func Cbrt(x float64) float64
//取x的开立方
fmt.Println(math.Cbrt(27))//3
5.func Ceil(x float64) float64
//向上取整
fmt.Println(math.Ceil(3.14))//4
6.func Floor(x float64) float64
//向下取整
fmt.Println(math.Floor(8.75))//8
7.func Modf(f float64) (int float64, frac float64)
//分别取整数和小数部分
Integer, Decimal := math.Modf(3.14159265358979)
fmt.Println(Integer, Decimal)//3 0.14159265358979