MCPcopy Create free account
hub / github.com/aws/smithy-go / float

Method float

encoding/httpbinding/query.go:82–93  ·  view source on GitHub ↗
(v float64, bitSize int)

Source from the content-addressed store, hash-verified

80}
81
82func (qv QueryValue) float(v float64, bitSize int) {
83 switch {
84 case math.IsNaN(v):
85 qv.String(floatNaN)
86 case math.IsInf(v, 1):
87 qv.String(floatInfinity)
88 case math.IsInf(v, -1):
89 qv.String(floatNegInfinity)
90 default:
91 qv.updateKey(strconv.FormatFloat(v, 'f', -1, bitSize))
92 }
93}
94
95// BigInteger encodes v as a query string value
96func (qv QueryValue) BigInteger(v *big.Int) {

Callers 2

FloatMethod · 0.95
DoubleMethod · 0.95

Calls 2

StringMethod · 0.95
updateKeyMethod · 0.95

Tested by

no test coverage detected