Good illustration of the unexpected results of using floating point numbers.
2 Likes
If you know floats aren't native in Arduino, making it work on extra code, and know how float work, I can't really see any unexpected result...
The author of the video went to a lot of work to expose a truly classic example of bad programming practice; one that instructors have cautioned against since the dawn of digital computers. Namely, adding a small increment to a floating point number of unknown magnitude.
But it never hurts to repeat the lessons.
There are inherent problems with floats that have little to do with the lengths an avr has to go to to process them.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.