A Dart package that implements Banker's Rounding (Round Half to Even), ensuring unbiased numerical rounding.
✅ Correctly rounds numbers to the nearest even number when the fractional part is exactly 0.5
.
✅ Supports rounding to a specified number of decimal places.
✅ Works with both positive and negative numbers.
✅ Fully tested with unit tests.
Add the package to your pubspec.yaml
:
dependencies:
half_even: ^1.0.0