All Questions
2 questions
0
votes
1
answer
79
views
float rounds with %2.f
I'm working on pset2 with cash.
But something interesting is happening
if input is 6.876 and i printf that value of that variable I get 6.88 instead of 6.87.
How can I get 6.87 instead of round 6.88?
...
3
votes
1
answer
707
views
Pset2 - Readability: How to round a .5 number depending on the 2nd digit after the decimal point
I have written a solution for readability from pset2 but I'm having problems with one of the points:
:( handles single sentence with multiple words expected "Grade 7\n", not "Grade 8\n".
So I ...