decimal and trunkating

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Thu Jun 2 10:49:40 EDT 2005


Peter Hansen wrote:
> 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?

Umm... no, I think not ;) But I couldn't find something better.

Reinhold



More information about the Python-list mailing list