Hi,
I am not able to convert the float value 1.234 into string "1.234" using sprintf. I am able to convert Integer 456 into string "456" using sprintf. I think sprintf does not support FLOAT conversion to string. Is it???
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am not able to convert the float value 1.234 into string "1.234" using sprintf. I am able to convert Integer 456 into string "456" using sprintf. I think sprintf does not support FLOAT conversion to string. Is it???
Yes, sprintf supports floating-point conversions.
Make sure you are not using --printf_support=nofloat or --printf_support=minimal.
See http://processors.wiki.ti.com/index.php/Tips_for_using_printf