8 lines
169 B
C
8 lines
169 B
C
void LCD5110::_convert_float(char *buf, double num, int width, byte prec)
|
|
{
|
|
char format[10];
|
|
|
|
sprintf(format, "%%%i.%if", width, prec);
|
|
sprintf(buf, format, num);
|
|
}
|