How to Fix printf("%f) issue in CW 10.6 or CW 11.0?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Fix printf("%f) issue in CW 10.6 or CW 11.0?

Jump to solution
383 Views
tholkapiyanv
Contributor II

Hi

How to solve following Problem?

   float  a = 5.628;

   printf("\n A Value :%f",*a);   

 

Output:

A Value : f

i tried CW10.6 and CW 11.0

Project Setting  Changed but doesn't work.

( Project --> Properties --> C/C++ Build --> Setting --> Librarian --> Print Formats int_FP )

how to fix this issue?

Kindly anyone give me the solution.

Thanks & Regards,

V.Tholkapiyan

Labels (1)
Tags (1)
0 Kudos
1 Solution
207 Views
tholkapiyanv
Contributor II

Hi Erich Styger,

      Thanks for your reply.

      Hi i got it answer

      use sprintf() function and

      Project --> Properties --> C/C++ Build --> Setting --> Librarian --> Print Formats int_LL_FP 

      Project --> Properties --> C/C++ Build --> Setting --> Librarian --> scan Formats int_LL_FP 

above changes i got it.

Thanks & Regards

   V.THOLKAPIYAN

View solution in original post

0 Kudos
1 Reply
208 Views
tholkapiyanv
Contributor II

Hi Erich Styger,

      Thanks for your reply.

      Hi i got it answer

      use sprintf() function and

      Project --> Properties --> C/C++ Build --> Setting --> Librarian --> Print Formats int_LL_FP 

      Project --> Properties --> C/C++ Build --> Setting --> Librarian --> scan Formats int_LL_FP 

above changes i got it.

Thanks & Regards

   V.THOLKAPIYAN

0 Kudos