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

Method AsFloat64

msgp/number.go:62–65  ·  view source on GitHub ↗

AsFloat64 sets the value of the number to a float64.

(f float64)

Source from the content-addressed store, hash-verified

60// AsFloat64 sets the value of the
61// number to a float64.
62func (n *Number) AsFloat64(f float64) {
63 n.typ = Float64Type
64 n.bits = math.Float64bits(f)
65}
66
67// Int casts the number as an int64, and
68// returns whether or not that was the

Callers 3

DecodeMsgMethod · 0.95
UnmarshalMsgMethod · 0.95
TestNumberFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNumberFunction · 0.76