Skip to content

FirdousNath/half_even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages