---
title: "RoundingRule"
slug: "api/basket/types/roundingrule"
sidebar:
  order: 298
---

<a id="ref-523a34583985"></a>
<a id="ref-984db8e3c014"></a>
<a id="ref-e90909e1aada"></a>

## Synopsis

```text
enum RoundingRule {
    NoRounding,
    RoundToNearest,
    RoundUp,
    RoundDown
}
```

Defines the rounding rule of a condition.

**NoRounding**

No rounding.

**RoundToNearest**

The system will round toward the nearest neighbour. In case of equidistant neighbours the system will round towards the even neighbour. This rounding mode is also called Banker’s Rounding.

**RoundUp**

With this rounding mode the system will round towards the nearest neighbour unless both neighbours are equidistant, in which case the system will round up (away from zero).

**RoundDown**

This rounding mode rounds towards the nearest neighbour unless both neighbours are equidistant. In that case the system will round down (towards zero).
