Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
31 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
SnowyBreaks:
What are some tactics you guys do to stop anxiety attacks when you're presenting,
xXAikoXx:
Decide whether each sentence contains a simile or a metaphor. If it is a metaphor, underline the metaphor in another color, and write "metaphor" after it.
CloverKris:
If I post the lyrics to a song; is that allowed? (With credits, ofc)
Trickjoker:
My ranking of every song on every Nirvana album released before Kurts passing BLEACH This was very difficult to do because I love every song on this album!
Andydegummibear:
why do people make fun of a death of a husband father and loving person charlie k
dontcare:
whats the best place to get a first tattoo at? Its gonna be a skull with pink and
xXAikoXx:
Romanticism had its roots in the individualism of the ________________, the Reformation's reverence to God in his natural state, and The Englightenment's de
xXAikoXx:
Any particular thoughts on the Holocaust in Germany that happened between 1941 an
1 hour ago
2 Replies
0 Medals
2 hours ago
5 Replies
1 Medal
7 hours ago
6 Replies
1 Medal
4 hours ago
6 Replies
0 Medals
4 hours ago
77 Replies
11 Medals
22 hours ago
9 Replies
0 Medals
4 hours ago
4 Replies
2 Medals
23 hours ago
2 Replies
0 Medals