]> git.ipfire.org Git - thirdparty/babel.git/commit
numbers: Implement rounding with Decimal
authorIsaac Jurado <diptongo@gmail.com>
Sun, 4 Oct 2015 18:36:02 +0000 (20:36 +0200)
committerIsaac Jurado <diptongo@gmail.com>
Wed, 14 Oct 2015 17:52:38 +0000 (19:52 +0200)
commit41f8faac068e5ca296f92f735f33fb58db5aff6a
treee8833216ffacfb819364a4d6c51697d35b23d865
parent5116c167241d7e01870f17adf8de0a1c86744ea4
numbers: Implement rounding with Decimal

Drop the old bankersround related code and implement rounding using the decimal
module instead.  This change will enable some other goodies such as: use the
drop-in replacement cdecimal when available, or allow for more rounding
algorithms by exposing one more parameter.
babel/numbers.py
tests/test_numbers.py