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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
674 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
498 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
499 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