ardupilot/libraries/Desktop/support/ftoa_engine.c

8 lines
162 B
C

#include <stdio.h>
int __ftoa_engine(double val, char *buf,
unsigned char prec, unsigned char maxdgs)
{
return sprintf(buf, "%*.*lf", prec, maxdgs, val);
}