MCPcopy Create free account
hub / github.com/francoispqt/gojay / Float

Method Float

decode_number_float.go:464–466  ·  view source on GitHub ↗

Float decodes the JSON value within an object or an array to a *float64. If next key value overflows float64, an InvalidUnmarshalError error will be returned.

(v *float64)

Source from the content-addressed store, hash-verified

462// Float decodes the JSON value within an object or an array to a *float64.
463// If next key value overflows float64, an InvalidUnmarshalError error will be returned.
464func (dec *Decoder) Float(v *float64) error {
465 return dec.Float64(v)
466}
467
468// FloatNull decodes the JSON value within an object or an array to a *float64.
469// If next key value overflows float64, an InvalidUnmarshalError error will be returned.

Callers 2

TestDecoderFloat64FieldFunction · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

Float64Method · 0.95

Tested by 1

TestDecoderFloat64FieldFunction · 0.36