This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Printing floating point numbers to UART

Hey everyone,

I'm trying to print floating point numbers to the UART to debug my application. I know the nrf51 is doing the operations correctly because if I convert the variable to an int I can print it correctly and I get (~)accurate values. When I try to print floats nothing happens. I read that this may be because I'm linking against a library (for sprintf) that has no floating point support.

Any workarounds?

Related