Go math
11 functions
math.Absmath.Abs(x float64) float64Returns the absolute value of x.
math.Ceilmath.Ceil(x float64) float64Returns the least integer value greater than or equal to x.
math.Floormath.Floor(x float64) float64Returns the greatest integer value less than or equal to x.
math.Roundmath.Round(x float64) float64Returns the nearest integer, rounding half away from zero.
math.Sqrtmath.Sqrt(x float64) float64Returns the square root of x.
math.Powmath.Pow(x, y float64) float64Returns x**y, the base-x exponential of y.
math.Maxmath.Max(x, y float64) float64Returns the larger of x or y.
math.Minmath.Min(x, y float64) float64Returns the smaller of x or y.
math.Logmath.Log(x float64) float64Returns the natural logarithm of x.
math.Log10math.Log10(x float64) float64Returns the decimal logarithm of x.
math.Pimath.Pi (const float64)Mathematical constant π ≈ 3.141592653589793.
