// Floor returns the greatest integer value less than or equal to x. // // Special cases are: // // Floor(±0) = ±0 // Floor(±Inf) = ±Inf // Floor(NaN) = NaN func Floor(x float64) float64 { … } func floor(x float64) float64 { … } // Ceil returns the least integer value greater than or equal to x. // // Special cases are: // // Ceil(±0) = ±0 // Ceil(±Inf) = ±Inf // Ceil(NaN) = NaN func Ceil(x float64) float64 { … } func ceil(x float64) float64 { … } // Trunc returns the integer value of x. // // Special cases are: // // Trunc(±0) = ±0 // Trunc(±Inf) = ±Inf // Trunc(NaN) = NaN func Trunc(x float64) float64 { … } func trunc(x float64) float64 { … } // Round returns the nearest integer, rounding half away from zero. // // Special cases are: // // Round(±0) = ±0 // Round(±Inf) = ±Inf // Round(NaN) = NaN func Round(x float64) float64 { … } // RoundToEven returns the nearest integer, rounding ties to even. // // Special cases are: // // RoundToEven(±0) = ±0 // RoundToEven(±Inf) = ±Inf // RoundToEven(NaN) = NaN func RoundToEven(x float64) float64 { … }