diff --git a/pkg/types/helper.go b/pkg/types/helper.go index 7e4f4bb72cb7b..607f9b862272c 100644 --- a/pkg/types/helper.go +++ b/pkg/types/helper.go @@ -56,7 +56,7 @@ func Truncate(f float64, dec int) float64 { shift := math.Pow10(dec) tmp := f * shift - // When dec is smaller than -323 or larger than 308, the shift will be inf. + // When dec is larger than 308, the shift will be inf. // At the same time, if f is 0, tmp will be NaN. if math.IsInf(tmp, 0) || math.IsNaN(tmp) { return f