half_even 1.0.0 copy "half_even: ^1.0.0" to clipboard
half_even: ^1.0.0 copied to clipboard

A Dart package for Banker's Rounding (Round Half to Even) to ensure unbiased numerical rounding.

Banker's Rounding (Round Half to Even) for Dart #

A Dart package that implements Banker's Rounding (Round Half to Even), ensuring unbiased numerical rounding.

📌 Features #

✅ 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.

📦 Installation #

Add the package to your pubspec.yaml:

dependencies:
  half_even: ^1.0.0
2
likes
160
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package for Banker's Rounding (Round Half to Even) to ensure unbiased numerical rounding.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on half_even