MCPcopy Create free account
hub / github.com/apache/fory / Float64bits

Function Float64bits

go/fory/util.go:90–90  ·  view source on GitHub ↗

Float64bits returns the IEEE 754 binary representation of f, with the sign bit of f and the result in the same bit position, and Float64bits(Float64frombits(x)) == x.

(f float64)

Source from the content-addressed store, hash-verified

88// with the sign bit of f and the result in the same bit position,
89// and Float64bits(Float64frombits(x)) == x.
90func Float64bits(f float64) uint64 { return *(*uint64)(unsafe.Pointer(&f)) }
91
92// Float64frombits returns the floating-point number corresponding
93// to the IEEE 754 binary representation b, with the sign bit of b

Callers 1

WriteFloat64Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected