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

Method float

encoding/httpbinding/header.go:91–102  ·  view source on GitHub ↗
(v float64, bitSize int)

Source from the content-addressed store, hash-verified

89}
90
91func (h HeaderValue) float(v float64, bitSize int) {
92 switch {
93 case math.IsNaN(v):
94 h.String(floatNaN)
95 case math.IsInf(v, 1):
96 h.String(floatInfinity)
97 case math.IsInf(v, -1):
98 h.String(floatNegInfinity)
99 default:
100 h.modifyHeader(strconv.FormatFloat(v, 'f', -1, bitSize))
101 }
102}
103
104// BigInteger encodes the value v as a query string value
105func (h HeaderValue) BigInteger(v *big.Int) {

Callers 2

FloatMethod · 0.95
DoubleMethod · 0.95

Calls 2

StringMethod · 0.95
modifyHeaderMethod · 0.95

Tested by

no test coverage detected