I am trying to convert a float to string to display on an LCD
I found the many variants of the following snippet in discussions online, but when I run it (On a Tennsy 3.2) I just get spaces (In the example below, 7 of them)
Any idea what I could be doing wrong?
I found the many variants of the following snippet in discussions online, but when I run it (On a Tennsy 3.2) I just get spaces (In the example below, 7 of them)
Code:
char buff[100];
float val = 23.5;
dtostrf(val, 7, 2, buff);
Any idea what I could be doing wrong?