4 Replies Latest reply on Aug 8, 2018 2:43 AM by fatihgök

    Printing Float on LCD PSOC 4.2 and ARM GCC 5.4 COMPİLER

    fatihgök

      Hi everone!

       

      I have same problem as a lot of body but every solves are for old program (such as ARM GCC 4.7)

       

       

      float ex1 = 1.232;

      int ex2= 123;

      char exchar[30];

       

      sprintf(exchar,"Testing: %f",ex1);

       

      this printing on LCD Testing:

       

      but

       

      sprintf(exchar,"Testing: %d",ex2);

       

      this printing on LCD  Testing: 123

       

      How can I fix this