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.
When I compare 123456700.000000 with 123456700.0000001, each stored in a float, the result is always FALSE. I wonder what floatfuzzy exactly means? Thanks.
http://www.keil.com/forum/docs/thread3150.asp
"I wonder what floatfuzzy exactly means?" The way to find out would be to Read the Manual: http://www.keil.com/support/man/docs/c51/c51_floatfuzzy.asp "The default value of 3 specifies that the three least significant bits of a float value are rounded before the floating-point comparison." (my emphasis). It is left as an excercise for the student to determine how "3 least significant bits" (not decimal places) relates to the examples given. Note that it's bits - not decimal places...
"Note that it's bits - not decimal places... " It is the words above that helps me out. Thanks a lot. d.curie