Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
697
func
absDouble(val ref.Val) ref.Val {
698
v := float64(val.(types.Double))
699
return
types.Double(math.Abs(v))
700
}
701
702
func
absInt(val ref.Val) ref.Val {
703
v := int64(val.(types.Int))
Callers
nothing calls this directly
Calls
1
Double
TypeAlias · 0.92
Tested by
no test coverage detected