---
title: "HalfWayRoundingMode"
slug: "api/basket/types/halfwayroundingmode"
sidebar:
  order: 289
---

<a id="ref-5c80cc6ceb95"></a>
<a id="ref-cd686882b577"></a>
<a id="ref-439cf3a67286"></a>

## Synopsis

```text
enum HalfWayRoundingMode {
    Even,
    Up
}
```

Rounding mode of the calculation.

**`Even`**

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

**`Up`**

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