Most likely not your main problem, but I assume this is not what you intend: 9/5 and 5/9
Those produce 1 and 0, respectfully. You are doing something called "Integer Division". To put it simply: 9/5...