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
cullenn:
Imagine, your first relationship, your first experience, ruined. He held me close, too close for comfort.
Twaylor:
since my therapist decided to ditch me - is it normal to have a dream where you cant tell if its reality or not? I can't feel anything in it but its hyper r
zanesafoodie:
I'm dancing with your shadow~ ohhh~ your fingertips fade through mine we do this
glomore600:
does anyone know how I can memorize a script for a play as a person with a terrible memory.
zanesafoodie:
I'm tired, I'm tired, everything around me is on fire a liar, a liar pants on fir
zanesafoodie:
hidden and out of sight wayward onwards into the night silks and ribbons gizmos and gadgets forests and hatchets keep it on the down low you don't have time
mcglones29:
If I had known if I had seen the signs I would have spent a little more time with
jhaseker:
Once was here now is gone I will always love forever the laughs the tears the smi
1 hour ago
8 Replies
2 Medals
1 hour ago
27 Replies
1 Medal
3 hours ago
4 Replies
0 Medals
9 hours ago
13 Replies
3 Medals
3 days ago
0 Replies
0 Medals
2 days ago
9 Replies
1 Medal
4 days ago
0 Replies
0 Medals
4 days ago
3 Replies
0 Medals