forked from TrueCloudLab/distribution
81a2d171ee
Upgrade the aws golang SDK to 1.42.27 to add the new options for configuring S3 dualstack endpoints. Signed-off-by: Adam Kaplan <adam.kaplan@redhat.com>
16 lines
281 B
Go
16 lines
281 B
Go
//go:build go1.10
|
|
// +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)
|
|
}
|