Hi I have been trying to use the equation:
int Temp; Temp = 680*((N-82)/(920-82)); return Temp;
"your calculation would indicate you need to change this to floating point maths" Or just pre-scale N by a suitable factor so that the result is non-zero!
A Neil Do you have example of using scaling to solve my problem?
"Do you have example of using scaling to solve my problem?" See Drew's reply - use the multiplication by 680 to "scale" the numerator before doing the division!