# Floor

The **Floor** function rounds the input number up to the closest multiple of equal or lesser value.

Note that you may have unexpected rounding results when applying **Floor** to float data types; this behavior depends on how the underlying data warehouse calculates the function.

### Syntax

```
Floor(number, factor)
```

The function has these arguments:

<table><thead><tr><th width="258"></th><th></th></tr></thead><tbody><tr><td>number</td><td>Required<br>The number or column of numbers to apply the function.<br>Note you may have unexpected results when using floating numbers, depending on the underlying database.</td></tr><tr><td>factor</td><td>Optional<br>The multiple to apply to the Floor function. The direction of rounding is opposite that of the positive or negative sign of the factor. The factor cannot be 0.<br>Default is 1.</td></tr></tbody></table>

> ### 📘
>
> The Floor function may return unexpected results if the input column is coming from float data type.

### Example

```
Floor(3.6)
```

* Returns 3.

```
Floor(-3.2)
```

* Returns -4.

```
Floor(Cost])
```

* Returns the **Floor** for each row in the input column.

<figure><img src="https://files.readme.io/d9cd47b-1.png" alt=""><figcaption></figcaption></figure>

```
Floor([Cost], 0.5)
```

* Returns the **Floor** at a factor of 0.5 for each row in the input column.

<figure><img src="https://files.readme.io/99f7bd8-2.png" alt=""><figcaption></figcaption></figure>

```
Floor([Cost], -0.25)
```

* Returns the **Floor** at a factor of -0.25 for each row in the input column.

<figure><img src="https://files.readme.io/e983879-3.png" alt=""><figcaption></figcaption></figure>

```
Floor([Cost], 2)
```

* Returns the **Floor** at a factor of 2 for each row in the input column.

<figure><img src="https://files.readme.io/7a7c172-4.png" alt=""><figcaption></figcaption></figure>
