I'm trying to convert a float value to string with dtostrf but it gives me the wrong output.
float dnm = 41.0607234;//my float value char buff;//giving 10 because value 10 characters dtostrf(dnm, 10, 7, buff);//this should give me 41.0607234
but dtostrf gives
i'm 100% sure i'm doing something wrong but couldn't find what am i doing wrong.
dtostrf(floatVar, minStringWidthIncDecimalPoint, numVarsAfterDecimal, charBuf); dtostrf(myfloatvalue,how many characters until dot,how many characters after dot);//am i understing right?