normalizers: implemented openmeteo forecast normalizer.
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
//
|
||||
// Note: encoding/json will not necessarily print trailing zeros (e.g. 1.50 -> 1.5),
|
||||
// but values will be *rounded* to this number of digits after the decimal point.
|
||||
const DefaultFloatPrecision = 2
|
||||
const DefaultFloatPrecision = 4
|
||||
|
||||
// RoundFloats returns a copy of v with all float32/float64 values (including pointers,
|
||||
// slices, arrays, maps, and nested exported-struct fields) rounded to `decimals` digits
|
||||
|
||||
Reference in New Issue
Block a user