Microcontroller › AVR › Interfacing BH1750 sennsor with Atmega8 › for displaying fraction
January 7, 2018 at 12:08 pm #14694
for displaying fraction values on LCD you have to do some juggling with digits.
first get the final answer in float (may be with 2 digit after decimal point)
now multiply this answer with 100 – so you will get final value without decimal point
now convert all digits of this value into ASCII characters and print these values
one by one on LCD with one decimal point in between