Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 39 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
Arriyanalol: WELCOME TO THE JET 2 HOLIDAY
19 minutes ago 0 Replies 0 Medals
Arriyanalol: what's 100-33
26 minutes ago 33 Replies 1 Medal
Arriyanalol: help me
1 hour ago 17 Replies 1 Medal
tax: Algebra 2 - Question 5/5
18 hours ago 7 Replies 1 Medal
tax: Algebra 2 - Question 4/5
18 hours ago 6 Replies 1 Medal
tax: Algebra 2 question - Problem 3/5
18 hours ago 6 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!