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

Function Float32frombits

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

Float32frombits returns the floating-point number corresponding to the IEEE 754 binary representation b, with the sign bit of b and the result in the same bit position. Float32frombits(Float32bits(x)) == x.

(b uint32)

Source from the content-addressed store, hash-verified

83// and the result in the same bit position.
84// Float32frombits(Float32bits(x)) == x.
85func Float32frombits(b uint32) float32 { return *(*float32)(unsafe.Pointer(&b)) }
86
87// Float64bits returns the IEEE 754 binary representation of f,
88// with the sign bit of f and the result in the same bit position,

Callers 1

ReadFloat32Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected