Ismail: could you please post more of your code, especially the definition of buffer? Also, do you have the word "float" in your call to stostrf, or were you just letting us know that "number" is a float? The type of "number" should not be in the call to dtostrf(). From some forum posts, it looks like there may be a bug with dtostrf() when using a float instead of a double. Can you try using a double for "number" instead of a float?
All: I haven't used dtostrf() before, but based on my cursory glance at it's definition, it seems unsafe (in the snprintf vs sprintf sense). Am I missing something that would prevent a buffer overflow when using dtostrf(), or is assumed that the caller knows how to test the length of the string the double will produce before calling dtostrf()? Is there a version of dtostrf() that accepts a max length argument (other than snprintf)?
73,