polargraph_arduino/libraries/UTFT/hardware/pic32/HW_PIC32.h

8 lines
173 B
C

void UTFT::_convert_float(char *buf, double num, int width, byte prec)
{
char format[10];
sprintf(format, "%%%i.%if", width, prec);
sprintf(buf, format, num);
}