Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
50 Online
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?
Still Need Help?
Join the QuestionCove community and study together with friends!
the 2011 6.00sc course? pset1 problem 3? What are you using for a tolerance in your comparisons?
I was using the following: margin =.0001
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
danielfootball123:
Bugs that need to get fixed on questioncove - in dm's we cannot delete our messages, it doesn't work.
CozyLittleBug:
How come read, as in I read that book. And read as in like I am reading this book.
danielfootball123:
@ultrilliam Please fix this bug (edit button) it don't work
zanesafoodie:
hey hey are you? oh I'm good just trying to make it through the day although there all the same sleep,eat, REPEAT.
danielfootball123:
@Jaynator495 @extrinix I really need help with my site to make it work in real time.
1 hour ago
7 Replies
2 Medals
37 minutes ago
12 Replies
2 Medals
1 hour ago
9 Replies
0 Medals
19 hours ago
15 Replies
1 Medal
17 hours ago
7 Replies
1 Medal