Integer division (
9/5
) rounds down. Try 9.0 / 5.0
or something like that.
9/5
) rounds down. Try 9.0 / 5.0
or something like that.