When I try to divide 1/60 or 1/(60*60) it gives 0. Even in debugger window. I am a bit confused what it could be, because 2/3 or 2.5/6 give results.
My code:
The line double k1 = 1/60 will be evaluated by the compiler as a compile-time constant. Since there is no '.0' on the end of the number, 1/60 will be evaluated via integer division, and hence be 0.
double k1 = 1/60
1/60