Decimal ROUND_HALF_EVEN Default

Steven D'Aprano steve at REMOVEMEcyber.com.au
Mon Jan 16 21:20:21 EST 2006


LordLaraby wrote:

> If 'bankers rounding' is HALF_ROUND_EVEN, what is HALF_ROUND_UP? I
> confess to never having heard the terms.
> I usually do: Y = int(X + 0.5) scaled to proper # of decimal places.
> Which type of rounding is this? If either.


Google Is Your Friend:

http://www.diycalculator.com/popup-m-round.shtml



-- 
Steven.




More information about the Python-list mailing list