Printf/Sprintf for float point variables not working.
Asked by
The_YongGrand
Dear Sir,
I managed to use a printf/sprintf using integers, but not with floating point variables.
In the linker options in the compiler (I used Eclipse and GCC 4.7 2013q3) I've placed "--specs=nano.specs -u _printf_float" but still the printf("%f ", 0.05) returning "-0.0000" or some long random number.
Is there something I've not included in the compilation?
By the way, the processor is STM32F401 (ARM Cortex M4) and I'm using the STM32Cube libraries.
Thanks,
N.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- The_YongGrand
- Solved:
- Last query:
- Last reply:
To post a message you must log in.