kubernetes/vendor/github.com/aws/aws-sdk-go/internal/sdkmath/floor.go
Sri Saran Balaji Vellore Rajakumar a94346bef9 Update aws-sdk-go dependency to v1.28.2
2020-01-16 19:22:14 -08:00

16 lines
263 B
Go

// +build go1.10
package sdkmath
import "math"
// 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 {
return math.Round(x)
}