Hi I have been trying to use the equation:
int Temp; Temp = 680*((N-82)/(920-82)); return Temp;
Assuming 'N' is an int, the subexpression ((N-82)/(920-82)) yields 0 for any value of 'N' less than 920. 680 * 0 = 0. You are using integer arithmetic, you know.