3 Replies Latest reply on Oct 5, 2016 11:50 AM by JoMe_264151

    Converting float to char [] to print in UART.

      This seems extremely trivial but I'm trying to convert a float to the char [] so I can print it out in UART. Here is how I'm trying to achieve this: 


      char buff[10];
      float test = 2.32
      sprintf(buff, "%f", test);


      However doing this nothing is printing out...The above is what i've seen on all the examples :,( why isn't this working for me.