Hi,
I know this issue is already discussed in another questions, but when I follow the steps to get float value I am unable to get that.
using KDS3.1.0 + PE
chip: KL03
there is nothing special in my code I am just writing
while(1)
{
PRINTF("\r\n %f",1.234);
OSA_TimeDelay(1000);
}
and it is giving me output as: f
I got two solutions after reading previous questions.
- SOLUTION-1: Adding symbol for float in Cross ARM C Compiler>>Preprocessor


After adding this "PRINTF_FLOAT_ENABLE" symbol when I build my code, it is showing error as follows


- SOLUTION-2: checking for "-u_printf_float" in Cross ARM C++ Linker>>Miscellaneous


It is printing the output as 'f' only.
I am also attaching here my project file,
why the float value is not getting printed?
Original Attachment has been moved to: float_30082016.zip