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

    Converting float to char [] to print in UART.

    user_459156114

      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);
      UART_UartPutString(buff);

         

      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.