By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,766 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,766 IT Pros & Developers. It's quick & easy.

rounding of a decimal object

P: n/a
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
Jul 18 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.