Answer to Question #36746 in Python for Satyam Negi

Question #36746
How to print out no more than two decimal digits of accuracy.
Like 32.32 instead of 32.321523844
1
Expert's answer
2013-11-29T08:28:02-0500
Use >> round(32.321523844,2)
https://docs.python.org/2/library/functions.html#round

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS