Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 10 Online
OpenStudy (anonymous):

I need help on how to round off a decimal to the nearest whole number in python. Say for example 15.045 to 15. And also rounding of 15.045 to 15.05. If anyone online studying MIT 6.00. I also want to know how to calculate total amount paid that year and remaining balance on Problem Set 1.

OpenStudy (espex):

Have you tried roundIO? round( x [, n] ) where 'x' is the number and 'n' is the places you would like rounded to. In your example you would use: round(15.045, 0) or round(15.045, 2)

OpenStudy (anonymous):

Thanks for helping me out on this!!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!