Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS and sprintf skip one value

$
0
0

I've got problem with function sprintf in Code Composer Studio. I wrote my own function in eclipse and test it. It works well, but when i moved it to CCS and try display values on LCD in evaluation board it's doesnt work. The function is to calculate fixed point value.  So in enclipse i print results by

printf(" value1 = %d,%.2d\n", valbeforecoma,valueaftercoma);

and for example got value 1.05. I want do the same by using sprintf function in CCS but result on LCD screen is 1.5 but i should got 1.05. It's skips one zero value.

Any idea how to solve problem?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>