MCPcopy Create free account
hub / github.com/expr-lang/expr / Ceil

Function Ceil

builtin/lib.go:118–128  ·  view source on GitHub ↗
(x any)

Source from the content-addressed store, hash-verified

116}
117
118func Ceil(x any) any {
119 switch x := x.(type) {
120 case float32:
121 return math.Ceil(float64(x))
122 case float64:
123 return math.Ceil(x)
124 case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
125 return Float(x)
126 }
127 panic(fmt.Sprintf("invalid argument for ceil (type %T)", x))
128}
129
130func Floor(x any) any {
131 switch x := x.(type) {

Callers

nothing calls this directly

Calls 2

FloatFunction · 0.85
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…