Hello to all,
excuse me for my question, I don't know if I can post it in this forum.
I am using Atmel Studio 6.1 to program Arduino Due and I would like to print a float number in a buffer.
If I write:
char bf [40];
int F = 1234;
sprintf (bf, "% d", F);
everything works fine and I find the integer number in the buffer "bf".
if instead I write
char bf [40];
float F = 1234.0;
sprintf (bf, "%f", F);
does not work and I don't find the float number in the buffer "bf" .
if I use Arduino IDE 1.5.2 everything works fine.
someone has a suggestion?
where am I wrong?
Best regards
Davide