]> git.ipfire.org Git - thirdparty/babel.git/commit
Remove explicit enforcement from Decimal rounding
authorIsaac Jurado <diptongo@gmail.com>
Sat, 28 May 2016 21:00:24 +0000 (23:00 +0200)
committerIsaac Jurado <diptongo@gmail.com>
Sat, 28 May 2016 21:00:24 +0000 (23:00 +0200)
commit6238f6620c54d0343e923ef92130b35f2bd117d0
tree53a8bbce8ce2498fad392e06df88108d3de92777
parent8ebdac3cf6a46bfd848d84b6f9e5dea91e20e51c
Remove explicit enforcement from Decimal rounding

Allow the rounding mode to be controlled from the currently active decimal
context.  This gives the caller the ability to control rounding mode, precision,
exponent range and all attributes that affect decimal operations.

Fixes #90
babel/_compat.py
babel/numbers.py