Temp sensor reading conversion

TJF1960

Active Member
Is it possible to take a temp sensor reading and convert it to a 2 digit number, which is easy DIV T1 10 VAR1, but would like if the temp reading was .5 or higher to increment the whole number by 1. In other words if it is 75.5F I would like the 2 digit variable to read as 76F.

Any thoughts or suggestions?

Thanks,
Tim
 
Is it possible to take a temp sensor reading and convert it to a 2 digit number, which is easy DIV T1 10 VAR1, but would like if the temp reading was .5 or higher to increment the whole number by 1. In other words if it is 75.5F I would like the 2 digit variable to read as 76F.

Any thoughts or suggestions?

add t1 5 var1
div var1 10 var1

Done.
 
Back
Top