How can I round a decimal object to desired decimal position? It seems
you have to use some unintuitive expression like:
Decimal('7.325').quantize(Decimal('.01'))
why not simply use Decimal('7.325').round(2) or just round(Decimal('7.325'), 2)?
--
Hong Yuan
´ó¹Ü¼ÒÍøÉϽ¨²Ä³¬ÊÐ
×°ÐÞ×°ä꽨²Äһվʽ¹ºÎï
http://www.homemaster.cn