mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-04-28 23:59:01 -07:00
8 lines
166 B
C
8 lines
166 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);
|
||
|
}
|