Decimal ROUND_HALF_EVEN Default

Max Erickson maxerickson at gmail.com
Mon Jan 16 19:28:45 EST 2006


"3c273" <nospam at nospam.com> wrote in
news:dqhb9v03088 at enews4.newsguy.com: 
> Hello,
> 
> I'm just curious as to why the default rounding in the decimal module
> is ROUND_HALF_EVEN instead of ROUND_HALF_UP. All of the decimal
> arithmetic I do is rounded half up and I can't think of why one might
> use round half even. I googled a bit and didn't really find a good
> answer. Any insight is appreciated.
> 
> Louis
> 
> 

see http://www2.hursley.ibm.com/decimal/damodel.html#refdefcont

decimal.py was written following the specification at
 
http://www2.hursley.ibm.com/decimal/decarith.html

max




More information about the Python-list mailing list