How to make round up and round down fractions work