Float64 constructs a field that carries a float64. The way the floating-point value is represented is encoder-dependent, so marshaling is necessarily lazy.
(key string, val float64)
| 120 | // floating-point value is represented is encoder-dependent, so marshaling is |
| 121 | // necessarily lazy. |
| 122 | func Float64(key string, val float64) Field { |
| 123 | return Field{Key: key, Type: zapcore.Float64Type, Integer: int64(math.Float64bits(val))} |
| 124 | } |
| 125 | |
| 126 | // Float64p constructs a field that carries a *float64. The returned Field will safely |
| 127 | // and explicitly represent `nil` when appropriate. |
no outgoing calls