Monthly Archives: February 2016

Lean and Mean Float to String Conversion (ftoa)

Here is an often requested, basic float to ascii conversion function (ftoa). The typical method for arduino to perform this conversion is to use either of the dtostrf() or sprintf() functions. Both of these library functions incorporate the same underlying … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

Floating Point Precision and Binary 32 or, Arduino Don’t Know Math

Did you know? 0.1 + 0.2 = 0.30000001 Try this simple arduino program to prove it: First, don’t be alarmed, and second, don’t throw your arduino into the trash thinking it’s defective. Its working just fine. For comparison, performing this … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment