praveen_palaparthi
Full Member level 1
HI friends
I m working on pic 16f917 micro controller .My project is to display battery back up on 3 bit LCD.I know the AH of the battery and by dividing AH with current i will get backup time.I am getting backup time in real numbers,but microcontroller is not able to hold real number.
For example
if battery AH is 60 and current it is giving is 22 amps den time=AH/current
den time=2.72 hours.I want to display this on LCD.BUt in microcontroller this value is not taking even if i declared time variable as a float type.
Tell me how to handle real values using microcontroller.
I m working on pic 16f917 micro controller .My project is to display battery back up on 3 bit LCD.I know the AH of the battery and by dividing AH with current i will get backup time.I am getting backup time in real numbers,but microcontroller is not able to hold real number.
For example
if battery AH is 60 and current it is giving is 22 amps den time=AH/current
den time=2.72 hours.I want to display this on LCD.BUt in microcontroller this value is not taking even if i declared time variable as a float type.
Tell me how to handle real values using microcontroller.