Skip to content

Commit

Permalink
updates func comments
Browse files Browse the repository at this point in the history
  • Loading branch information
f41gh7 authored Nov 21, 2024
1 parent ddccb09 commit c5dee46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binaryop/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ func Mod(left, right float64) float64 {
return math.Mod(left, right)
}

// Pow returns pow(left, right)
// Pow returns pow(left, right) if left is not NaN. Otherwise NaN is returned.
func Pow(left, right float64) float64 {
// special case for NaN^any
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7359
if math.IsNaN(left) {
return nan
}
Expand Down

0 comments on commit c5dee46

Please sign in to comment.