Go math
11個の関数
math.Absmath.Abs(x float64) float64絶対値を返します。
math.Ceilmath.Ceil(x float64) float64切り上げた値を返します。
math.Floormath.Floor(x float64) float64切り捨てた値を返します。
math.Roundmath.Round(x float64) float64四捨五入した値を返します。
math.Sqrtmath.Sqrt(x float64) float64正の平方根を返します。
math.Powmath.Pow(x, y float64) float64xのy乗を返します。
math.Maxmath.Max(x, y float64) float642つの値のうち大きい方を返します。
math.Minmath.Min(x, y float64) float642つの値のうち小さい方を返します。
math.Logmath.Log(x float64) float64自然対数を返します。
math.Log10math.Log10(x float64) float64常用対数(底10)を返します。
math.Pimath.Pi (const float64)円周率 π ≈ 3.141592653589793。
