---
name: "floor"
type: command
status: ok
groups: ["Math"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/floor
revid: 369333
updated: 2024-09-03T18:43:00Z
---

# floor

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

## Description

Returns the next **lowest** integer in relation to the provided number.

## Syntax

```sqf
floor num
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
floor 5.1;        // result is  5
floor 5.999;    // result is  5
floor -2.01;    // result is -3
floor -2.99;    // result is -3
```

## See also

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

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