Hi,
I have a LPC54628 dev board. Im trying to print signed floating numbers, however negative sign is not printed.
I did the following changes which works for decimal numbers but not floating numbers.
PRINTF_ADVANCED_ENABLE=1
PRINTF_FLOAT_ENABLE=1
Here is the code.
Current = -0.001A
SHELL_Printf(" %.4fV %fA\r\n",temp,Current);
I tracked down to the inner functions of Printf, I found out that the sign is lost during casting.
fval loses the sign after cast. This function is in fsl_str.c file.
Can you help me?
Regards,
Caner
Hello,
Please choose Newlib to test:
Regards,
Alice