Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I'm reading floats in from a file using strtof :
I get :
The file is a unix format text file and just contains :
How can 120.01 from the file become 120.010002136230 when converted to a float ?!
Am I doing something wrong or is there a bug in strtof ?
Thanks.
Jon.