i m using PIC16F877, i want to display ADC(0-5V) on LCD display that show a number 0.00-10.00..
i didn't use floating point instead i used decimal point to display the 2 digit of division..
the problem is the biggest number that is showed will become out of range..
for example, the formula is x multiply 393 div 100 = y
when x= 250, y=982 and i will manually put a decimal point after the number of 9 so y=9.82
but when x=254, y=998 ==9.98
and at maximum x=255, y=1002 ==10.02
but the maximum number that i want to show is 10.00..so how to make a change on the formula in order to let the display show only 0.00-10.00??
i didn't use floating point instead i used decimal point to display the 2 digit of division..
the problem is the biggest number that is showed will become out of range..
for example, the formula is x multiply 393 div 100 = y
when x= 250, y=982 and i will manually put a decimal point after the number of 9 so y=9.82
but when x=254, y=998 ==9.98
and at maximum x=255, y=1002 ==10.02
but the maximum number that i want to show is 10.00..so how to make a change on the formula in order to let the display show only 0.00-10.00??