float data precision and fat16 lib
when trying write value of float variables sd card using write function of fat16 lib, precision of float values reason limited 2 digits.
does know how possible write float values 7 digits precision using fat16 lib.
thanks help.
does know how possible write float values 7 digits precision using fat16 lib.
thanks help.
as string, instead?
then, write stringvalue sd card, instead of somevalue;
code: [select]
float somevalue = 0.002;
char stringvalue[12];
sprintf(stringvalue, "%.7f", somevalue);then, write stringvalue sd card, instead of somevalue;
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > float data precision and fat16 lib
arduino
Comments
Post a Comment