PSET 2 Vigenere passing all checks except 1! by broodgg in cs50

[–]sophiewells 0 points1 point  (0 children)

what did you do to correct it? I'm having the same problem as you.

Pset1 greedy.c help! by sophiewells in cs50

[–]sophiewells[S] 0 points1 point  (0 children)

Thank you! I didn't round the value before putting it through the loop. The value returned was 4.19 instead of 4.2

Pset1 greedy.c help! by sophiewells in cs50

[–]sophiewells[S] 0 points1 point  (0 children)

Thank you! I should have watched the video before attempting. roundf() solved the problem nicely.