---
title: "math:round — Round"
description: "iXML command math:round: Round."
canonical_url: "https://www.zeyos.com/ixml/ref/math-round"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/math-round.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# math:round — Round

MATH:ROUND rounds a value to a number of decimal digits, specified by a given precision.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| precision | int |  | Precision |
| type | type | half-infinity | Rounding type |

#### Possible values
Possible values for `type`:
- half-infinity — Symmetrically to nearest, ties towards infinity.
- half-zero — Symmetrically to nearest, ties towards zero.
- half-up — Upwards to nearest, ties towards positive infinity
- half-down — Downwards to nearest, ties towards negative infinity
- half-even — Symmetrically to nearest, ties to even
- half-odd — Symmetrically to nearest, ties to odd.
- infinity — Symmetrically towards infinity
- zero — Symmetrically towards zero
- up — Upwards to positive infinity
- down — Downwards to negative infinity


### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: float

### Examples

```xml
<output>
	<math:round precision="2">17.213482971852</math:round>
</output>

<!-- 17.21 -->
```
