---
name: "ceil"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ceil
revid: 318729
updated: 2022-05-13T09:21:23Z
---

# ceil

*Command · Math · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

The ceil value of x.

## Syntax

```sqf
ceil x
```

**Parameters:**

- `x`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
ceil 5.25; // Result is 6
```

### Example 2

```sqf
ceil -5.25; // Result is -5
```

## See also

[floor](../commands/floor.md) · [round](../commands/round.md) · [linearConversion](../commands/linearConversion.md)

<sub>Source: [BI Community Wiki — ceil](https://community.bistudio.com/wiki/ceil) (revision 318729).</sub>
