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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | round(number, digits) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Rounds a number to a specified number of digits.

 Rounds a number to a specified number of digits.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| number | Number | Yes | Number you want to round. |
| digits | Number | Yes | Number of digits you want to round the number argument to. |

## Return Type

**Number**

## Example

```
number a = round(2.36547, 2);
print("a= " + a);
```

Prints: a= 2.37;

## See also

> Macro (contentbylabel)