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

Function absDouble

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

Source from the content-addressed store, hash-verified

695}
696
697func absDouble(val ref.Val) ref.Val {
698 v := float64(val.(types.Double))
699 return types.Double(math.Abs(v))
700}
701
702func absInt(val ref.Val) ref.Val {
703 v := int64(val.(types.Int))

Callers

nothing calls this directly

Calls 1

DoubleTypeAlias · 0.92

Tested by

no test coverage detected