normalizers: implemented openmeteo forecast normalizer.

This commit is contained in:
2026-01-17 10:16:50 -06:00
parent b47f1b2051
commit c12cf91115
6 changed files with 328 additions and 47 deletions

View File

@@ -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