go/src/runtime/float.go

var inf

// isNaN reports whether f is an IEEE 754 “not-a-number” value.
func isNaN(f float64) (is bool) {}

// isFinite reports whether f is neither NaN nor an infinity.
func isFinite(f float64) bool {}

// isInf reports whether f is an infinity.
func isInf(f float64) bool {}

// abs returns the absolute value of x.
//
// Special cases are:
//
//	abs(±Inf) = +Inf
//	abs(NaN) = NaN
func abs(x float64) float64 {}

// copysign returns a value with the magnitude
// of x and the sign of y.
func copysign(x, y float64) float64 {}

// float64bits returns the IEEE 754 binary representation of f.
func float64bits(f float64) uint64 {}

// float64frombits returns the floating point number corresponding
// the IEEE 754 binary representation b.
func float64frombits(b uint64) float64 {}