# ee.Array.ceil

On an element-wise basis, computes the smallest integer greater than or equal to the input.

<br />

| Usage | Returns |
|---|---|
| `Array.ceil()` | Array |

| Argument | Type | Details |
|---|---|---|
| this: `input` | Array | The input array. |

## Examples

### Code Editor (JavaScript)

```javascript
// Requires an explicit PixelType if no data.
print(ee.Array([], ee.PixelType.int8()).ceil());  // []

print(ee.Array([-1.1]).ceil());  // [-1]
print(ee.Array([-0.1]).ceil());  // [0]
print(ee.Array([0]).ceil());  // [0]
print(ee.Array([0.1]).ceil());  // [1]
print(ee.Array([1.1]).ceil());  // [2]
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
# Requires an explicit PixelType if no data.
display(ee.Array([], ee.PixelType.int8()).ceil())  # []

display(ee.Array([-1.1]).ceil())  # [-1]
display(ee.Array([-0.1]).ceil())  # [0]
display(ee.Array([0]).ceil())  # [0]
display(ee.Array([0.1]).ceil())  # [1]
display(ee.Array([1.1]).ceil())  # [2]
```