Why do you want to make a String out of the float, and then send that string as binary data? Why the f**k don't you just use print() and let it handle converting the float to a string?
well now that you got what's the syntax to send data with write - why don't you just send the actual 4 bytes representing your floats rather than an approximation in form of a char string?
why don't you just send the actual 4 bytes representing your floats rather than an approximation in form of a char string?
Perhaps the client just needs a string representation of the float. Recreating the float from 4 bytes requires knowing the order of the bytes AND that the bytes represent a float. No such problem with a string representation of a float.
Use of write versus print was suggesting a desire for direct memory transfer - but Perhaps indeed - just wondering aloud if this has even been considered