MCPcopy Create free account
hub / github.com/cel-expr/cel-go / isFinite

Function isFinite

ext/math.go:687–690  ·  view source on GitHub ↗
(val ref.Val)

Source from the content-addressed store, hash-verified

685}
686
687func isFinite(val ref.Val) ref.Val {
688 v := float64(val.(types.Double))
689 return types.Bool(!math.IsInf(v, 0) && !math.IsNaN(v))
690}
691
692func isNaN(val ref.Val) ref.Val {
693 v := val.(types.Double)

Callers

nothing calls this directly

Calls 1

BoolTypeAlias · 0.92

Tested by

no test coverage detected