MCPcopy
hub / github.com/tinylib/msgp / AsFloat32

Method AsFloat32

msgp/number.go:55–58  ·  view source on GitHub ↗

AsFloat32 sets the value of the number to a float32.

(f float32)

Source from the content-addressed store, hash-verified

53// AsFloat32 sets the value of the number
54// to a float32.
55func (n *Number) AsFloat32(f float32) {
56 n.typ = Float32Type
57 n.bits = uint64(math.Float32bits(f))
58}
59
60// AsFloat64 sets the value of the
61// number to a float64.

Callers 2

DecodeMsgMethod · 0.95
UnmarshalMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected