semvec/pypi-packages huggingface dataset:
ClassicRound 1.0
Current python 3's round function uses Banker's rounding, this package will help you to round numbers the classical way.
Requires Python: >=3.6

# ClassicRound

The current implementation of round() function in Python 3 uses Banker's rounding i.e integers are rounded to the nearest even integer, this package allows you to round off numbers the classical way.

### Installation

ClassicRound has no dependencies.

```sh
> pip install ClassicRound
```

### Usage (example)

```sh
> from ClassicRound import classic_round

> classic_round(2.55, 1) #outputs 2.6 whereas python 3's round() outputs 2.6
```

### Parameters

- Number that needs to be rounded off
- Upto which decimal places (__optional__) (**defaults to 2 decimal points** (Hundredths Place))

Input parameters can be in any format i.e. integer, float, string.

Output will be:
- integer -> if decimal points is 0
- otherwise float

License
----

MIT