polargraph_arduino/libraries/UTFT/hardware/arm/HW_ARM.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);
}