We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
i want to use the dtostrf() function of stdlib.h in uvision4, because my sprintf() function of stdio.h make some mistakes by convert a float value in a string. Instead of the decimal point, value 0x20 will be set! The dtostrf() function are not located in the default library, libc.a, but in the mathematical library, libm.a. So when linking the application, the -lm option needs to be specified.
How can i include this library under uvision4? Or how can i get this function under uvision4?
Thanks for the replies!
Seb V.
I would suggest posting an example for review. I have no problem using sprintf() with floating point numbers in any of my applications. Also post what version of the MDK you are using. I am using 4.60 but have never had problems with my applications, I believe I started with around version 4.20.