---
title: "floor"
canonical: "https://support.appfire.com/space/PSJ/15481172/floor"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | floor(number, significance) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Rounds number down, toward zero, to the nearest multiple of significance.

Rounds number down, toward zero, to the nearest multiple of significance.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| number | Number | Yes | Numeric value you want to round to. |
| significance | Number | Yes | Multiple value you want to round to. |

## Return Type

**Number**

## Example

```
number a = floor(4.5, 2);
print("a= " + a);
number b = floor(-2.5, -2);
print("b= " + b);
```

Prints:

         a= 4;

         b= -2;

> ⚠️ If number is positive and significance is negative, FLOOR returns the NaN  value.

## See also

> Macro (contentbylabel)