Search the Community
Showing results for tags 'example conversion'.
Found 1 result
casting or converting numeric types to string in Energia
rpitts posted a topic in Energia - MSPI'm new to energia development, and I would like an example of how to convert a numeric value to a string for output. Often, the launchpad LCD modules will support output for strings, but I have not found a good way to convert a number into a string for output. I am getting a reading into variable t I want to display on the 2.2 Touch LCD module. My available output command is .text(x,y,string); So I write; float t = dht.readTemperature(); myScreen.Text(10,10,"Temp"); Next I want to output the value to t to the screen. How would you go about doing this? Thanks so much!