decimal and trunkating

Peter Hansen peter at engcorp.com
Thu Jun 2 09:47:54 EDT 2005


Reinhold Birkenfeld wrote:
> He is speaking of Decimals...
> 
> d = Decimal("199.999")
> d._round(5, decimal.ROUND_DOWN)

Is one really supposed to call the underscore methods like that?

-Peter	



More information about the Python-list mailing list