Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
39 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
OsKar:
Any members from NJROTC, what's the hardest thing to do and why?? (Could relate t
FredFred:
any tutuorial on how to get over something althought Ive moved on I still cant seem to get over it.
zanesafoodie:
guys I need opinions on a song title for a new song plz vote, please put 1 or 2 as your vote whoever has the most votes is the one i'll chose 1.
MochaBerries:
some ?poetry? I wrote when I was in my feels, lol (don't attack me if this isn't proper poetry!!) __ "hypocrisy", iffat fatima on a cloudy summer [my birthd
1 hour ago
0 Replies
0 Medals
55 minutes ago
1 Reply
0 Medals
1 hour ago
2 Replies
0 Medals
1 hour ago
9 Replies
0 Medals