Hi Team , Can you please help me know hoe to enable float point in nrf VScode too, as i am trying to print this float value
printk("%f\n\r", Final_Displacement); , but on serial terminal i am getting *float* .
Hi Team , Can you please help me know hoe to enable float point in nrf VScode too, as i am trying to print this float value
Hi,
You can add CONFIG_PICOLIBC_IO_FLOAT=y to your prj.conf file to enable printing of floats (or CONFIG_NEWLIB_LIBC_FLOAT_PRINTF if you're using newlib).
Best regards,
Vidar
Hi,
You can add CONFIG_PICOLIBC_IO_FLOAT=y to your prj.conf file to enable printing of floats (or CONFIG_NEWLIB_LIBC_FLOAT_PRINTF if you're using newlib).
Best regards,
Vidar