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

Function Float32bits

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

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

(f float32)

Source from the content-addressed store, hash-verified

77// with the sign bit of f and the result in the same bit position.
78// Float32bits(Float32frombits(x)) == x.
79func Float32bits(f float32) uint32 { return *(*uint32)(unsafe.Pointer(&f)) }
80
81// Float32frombits returns the floating-point number corresponding
82// to the IEEE 754 binary representation b, with the sign bit of b

Callers 1

WriteFloat32Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected