| |
comp.lang.python |
> round(199.999, 2) # 2 digits after the decimal point > 19.999 is a float : d = Decimal("199.999") Reinhold
> Le Thu, 02 Jun 2005 19:59:08 +1000, Timothy Smith a écrit :
>> i want to trunkate 199.999 to 199.99
> type(19.999) is float # ==> True
d._round(5, decimal.ROUND_DOWN)