System Workbench for STM32

You are viewing a reply to Need Float output for printf  

Need Float output for printf


I know that this thread is one year old, but to give an answer for other people that are looking for the answer, I will give it.

By default the float support is disabled. To enable it, add the linker flag: “-u _printf_float” in your project properties:
Properties -> C/C++ Build -> Settings -> MCU GCC Linker -> Miscellaneous -> Linker flags