3 Replies Latest reply on Jul 4, 2016 11:40 PM by user_1377889

    convert float to string not working

    peter.kaing

      Hi there,

         

      I try to use 

         

      sprintf (My_String, "%f ;", longitudeDegrees);
      UART_PutString(My_String);

         

      but this doesn't work.

         

      sprintf (My_String, "%d ;", counter);

         

      UART_PutString(My_String);

         

      but this one is working. i think there a problem with convert from flaot to string. I am using PSoC Creator 3.3, ARM GCC 4.9-2015-q1-update, and PSoC 5 LP.

         

      Could you help me with this problem? Thanks