Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ round
Function
round
ext/math.go:672–675 ·
view source on GitHub ↗
(val ref.Val)
Source
from the content-addressed store, hash-verified
670
}
671
672
func
round(val ref.Val) ref.Val {
673
v := val.(types.Double)
674
return
types.Double(math.Round(float64(v)))
675
}
676
677
func
trunc(val ref.Val) ref.Val {
678
v := val.(types.Double)
Callers
nothing calls this directly
Calls
1
Double
TypeAlias · 0.92
Tested by
no test coverage detected