<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Float point issue in printf</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110168/float-point-issue-in-printf</link><description>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 ( &amp;quot; %f \n\r &amp;quot; , Final_Displacement ); , but on serial terminal i am getting *float* .</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2024 06:02:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110168/float-point-issue-in-printf" /><item><title>RE: Float point issue in printf</title><link>https://devzone.nordicsemi.com/thread/478429?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 06:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076c6c01-314e-49db-a027-90bfa1ef3d60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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&amp;#39;re using newlib).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>