Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhangxian1008 committed Dec 16, 2024
1 parent 66782be commit 956d799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 956d799

Please sign in to comment.