Monthly Archives: April 2015

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

Arduino s16.15 Fixed Point Math Routines

It is important to note, that fixed point math comes in many flavors. For example, a 16-bit integer can implement 31 different fixed point formats, signed and unsigned Q1 through Q16 (Q number format). A couple of popular 16-bit formats … Continue reading

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