(v float64, bitSize int)
| 80 | } |
| 81 | |
| 82 | func (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 |
| 96 | func (qv QueryValue) BigInteger(v *big.Int) { |