Using MPLABX, C18 on PIC18F87J72 The Problem: Casting floats to long -> converting result to a string -> send to LCD screen -> prints obviously overflowed value. i.e char str_buff; float flt1 = 1.436; long lng1 = (long) flt1; ltoa(lng1,str_buff); LCD_send..
↧