cancel
Showing results for 
Search instead for 
Did you mean: 

I receive from pc to micro a uart buffer of ASCII value that rappresent a float number. How can transform this buffer in float number?

MPenn.1
Associate
 
3 REPLIES 3

atod() sscanf() ??​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

There are a lot of hits if you search for this information on Google. Here is one of them:

https://stackoverflow.com/questions/7951019/how-to-convert-string-to-float

If you feel a post has answered your question, please click "Accept as Solution".
Piranha
Chief II

The only safe way with standard library functions is described here:

https://wiki.sei.cmu.edu/confluence/display/c/ERR34-C.+Detect+errors+when+converting+a+string+to+a+number