Tag Archives: string

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

Convert an ASCII String to Fixed Point: atofp()

Here is a small utility routine which converts an ASCII string floating point number into an s16.15 format fixed point number. Most fixed point libraries neglect this conversion. However, in practice, this routine is very useful. If the conversion process … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments