peridot/vendor/github.com/aws/aws-sdk-go/internal/sdkmath/floor.go

17 lines
281 B
Go
Raw Normal View History

2022-11-04 02:21:49 +00:00
//go:build go1.10
2022-07-07 20:11:50 +00:00
// +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)
}