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

floating point not printing

I have the following statements throughout my code.

printk("Temperature(BMP280): %3.2f %s\r\n",tempFloat,tempUnitsCentigrade?"C":"F");

I would like the format %3.2f to print the data in floating point. I know there is a floating point library that is normally not 

included unless you specify it. could you tell me how I include the floating point library. previous notes that I saw were not clear to me.

I appreciate any help you can give.

Related