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

8 lines
173 B
C
Raw Normal View History

2019-08-31 22:31:33 +02:00
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);
}