Asked this question on Electrical Engineering Stack Exchange and was directed here:
Pretty self explanatory; how would I go about converting a float into a char*? I have code in which the float 'resistance' is constantly being updated. I would like to be able to update the variable 'result' to take the value of 'resistance'. Here is some of the code, in case it helps:
const char * result = ""; float resistance = 2.5; result = resistance; //This bit (obviously) doesn't work
Thanks for your help!