The following program:
ADCIN 0, PRE
PRE = (PRE */500)>>2
PRE = ((((PRE * 10/5) + 95)/9)
How do i display the result of PRE on a LCD, correct to 2 decimal values?
Assuming
1st case : PRE = 800
After the formula, PRE = 97.36111111
How to display "97.36" on LCD?
2nd case : PRE = 900
After the formula, PRE = 108.2118
How to display "108.22" on LCD?
Thank you.
Bookmarks