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

I am on problem set 1 question c. My monthly payment and number of months is correct but my final balance differs from the example output for both test cases by .01. Is there best practice for rounding and adding/subtracting to adjust for floating point? I am using notepad++ and Win powershell instead of IDLE. Can this affect results?

OpenStudy (anonymous):

the 2011 6.00sc course? pset1 problem 3? What are you using for a tolerance in your comparisons?

OpenStudy (anonymous):

I was using the following: margin =.0001

OpenStudy (anonymous):

Correct. It is the 2011 6.00 SC course, problem set 1c. Additional info: The balance that prints from my code is -.11 for both test examples.

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!
Latest Questions
Countless7Echos: Ah trying out the whole T.V girl drawing :p (I love drawing eyes)
4 hours ago 13 Replies 6 Medals
kaelynw: starting to draw a hand
12 hours ago 17 Replies 2 Medals
Twaylor: Rate it :D (Took 2 days)
4 days ago 7 Replies 0 Medals
XShawtyX: Art, Short Writing Assignment: Imagining Landscapes
37 minutes ago 9 Replies 1 Medal
XShawtyX: Chemistry, Help ud83dude4fud83cudffe
5 days ago 13 Replies 1 Medal
kaelynw: tried a lil smt, the arm is off but i like the other stuff
5 days ago 27 Replies 3 Medals
kaelynw: art igg
5 days ago 14 Replies 1 Medal
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!