cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

liwoog
Adept II

Is Printf still broken on Tahiti?

Simple case where I output the same variables twice:

if(0 == lid)

printf((__constant char *) "Out(%4.0f,%4.0f) CDP(%4.0f,%4.0f) Out(%4.0f,%4.0f) CDP(%4.0f,%4.0f)\n", sLineGather, xLineGather, sLineCDP, xLineCDP, sLineGather, xLineGather, sLineCDP, xLineCDP);

A typical line of results:

Out(1518,1755) CDP(1518,5819) Out(1518,5821) CDP(5704,   0)

0 Likes
1 Reply
Wenju
Elite

If changed the type to int, the result would be right. But for float, maybe it's a bug.

0 Likes