(x any)
| 116 | } |
| 117 | |
| 118 | func 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 | |
| 130 | func Floor(x any) any { |
| 131 | switch x := x.(type) { |