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

Function trunc

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

Source from the content-addressed store, hash-verified

675}
676
677func trunc(val ref.Val) ref.Val {
678 v := val.(types.Double)
679 return types.Double(math.Trunc(float64(v)))
680}
681
682func isInf(val ref.Val) ref.Val {
683 v := val.(types.Double)

Callers

nothing calls this directly

Calls 1

DoubleTypeAlias · 0.92

Tested by

no test coverage detected