I have the above code
private float farenaitCelsiusMath(float f) {
float result;
result = (f-1)*(2/3);
return result;
}
when i run the app on the emulator it evaluates to 0 whatever value i give to f.
But when the third line to result = (f-1)*2/3;
it evaluates correctly.
Why does that happens? Is there sth i should know about arithmetic expressions in java?