FloatToString.h

PaulS:

  1. how do I change this so the ".h" file becomes a normal ".ino" and I don't have to use #include etc ?

Copy and paste. But, why?

Partly for my education, partly because it stands out as an annoying exception - none of my other function calls require me to include anything. I did try cut and paste recently but I get this error: 'FloatToString' was not declared in this scope??
(I also commented the line #include "Arduino.h" out as I assume it's redundant)

PaulS:

  1. why doesn't this compile if I change the #include to #include <FloatToString.h> ?

Because #include <> and #include "" cause the compiler to look in different places for the file. The file is in the "" place, not the <> place.

simple enough, thanks

PaulS:

3) is there a more elegant way to convert float to string ?

There is a dtostrf() function.

could you provide a pointer to info about that call please?

another question: why is this a ".h" file anyway? I thought header files are meant to be for pre-declarations, whereas this file is just code ?