AnsweredAssumed Answered

Does the CodeWarrior(CW for PA 10.0.2) support the float/double format with printf()/sprintf() ?

Question asked by koichi sakagami on Jan 31, 2017
Latest reply on Feb 21, 2017 by Yiping Wang

Dear community,

I expected that the printf() displays an output according to general ANSI-C specification.
However, the result was different.

 

For example, I programmed as follows.

        float val = 7.4;
        printf("%f\n", val);

Then,  It displayed " %f " insted of displaying " 7.4"

 

[Question]

Does the CodeWarrior(CW for PA 10.0.2) support the float/double format with printf()/sprintf() ?

 

Best Regards,

Koichi Sakagami

Outcomes