Skip to content

Commit da5de2d

Browse files
committed
add comment
1 parent 472b386 commit da5de2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/types/number.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,7 @@ func ConvertHexBlobToDecimalForNumericContext(val interface{}, originType sql.Ty
15661566
return val, nil
15671567
}
15681568

1569+
// IsValidFloat returns false if a float is NaN or infinity
15691570
func IsValidFloat(f float64) bool {
15701571
return !math.IsNaN(f) && !math.IsInf(f, 0)
15711572
}

0 commit comments

Comments
 (0)