<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>float on Bald Engineer</title><link>https://www.baldengineer.com/tag/float</link><description>Recent content in float on Bald Engineer</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 09 Jul 2018 01:31:47 +0000</lastBuildDate><atom:link href="https://www.baldengineer.com/tag/float/index.xml" rel="self" type="application/rss+xml"/><item><title>Five Arduino math fixes for when it is wrong</title><link>https://www.baldengineer.com/arduino-math-fixes.html</link><pubDate>Wed, 04 Jul 2018 13:16:52 +0000</pubDate><guid isPermaLink="false">https://www.baldengineer.com/?p=7463</guid><description>While the Arduino library does an excellent job of hiding some of C/C++’s warts, at the end of the day, it is still just C/C++. This fact causes a few non-intuitive issues for inexperienced programmers. When it looks like Arduino math is wrong, it is probably one of these reasons.&#10;When people ask me for help with their programming, I check each of these Arduino math mistakes. If your code seems to be hitting a bug, check to make sure it is not how the compiler handles math.<p><img src="https://www.baldengineer.com/wp-content/uploads/2018/07/Arduino-Math-Chalkboard-1960px-v2.jpg" alt="Five Arduino math fixes for when it is wrong"/></p></description></item></channel></rss>