Home › Forums › Microcontrollers › PIC Microcontroller › Display Float on LCD – MPLAB XC8 › Reply To: Display Float on LCD – MPLAB XC8
December 23, 2014 at 7:18 am
#10289

Keymaster
Use sprintf() to convert floating point number to string :
........ #include<stdio.h> ...... ... ... void main() { char s[16]; float f; ........ .... while(1) { .... ... ... sprintf(s, "Float = %f", f); Lcd_Set_Cursor(1, 1); Lcd_Write_String(s); ........... ..... } }