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.

as string, instead?

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

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums