MCPcopy Create free account
hub / github.com/segmentio/encoding / Float32

Method Float32

proto/message.go:92–94  ·  view source on GitHub ↗
(v float32)

Source from the content-addressed store, hash-verified

90}
91
92func (f FieldNumber) Float32(v float32) RawMessage {
93 return f.Fixed32(math.Float32bits(v))
94}
95
96func (f FieldNumber) Float64(v float64) RawMessage {
97 return f.Fixed64(math.Float64bits(v))

Callers 4

ValueMethod · 0.95
TestRewriteFunction · 0.80
BenchmarkRewriteFunction · 0.80

Calls 1

Fixed32Method · 0.95

Tested by 2

TestRewriteFunction · 0.64
BenchmarkRewriteFunction · 0.64