<?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>NRF Connect SDK: when using newlibc, floats and doubles not printed by printf</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83956/nrf-connect-sdk-when-using-newlibc-floats-and-doubles-not-printed-by-printf</link><description>I would like to use newlibc for access to math functions (logf). However, when I enable newlibc I can&amp;#39;t get floats or doubles to print with printf when compiling for the nrf52840dk_nrf52840. It does work for native_posix. 
 My test program: 
 
 
 
 prj</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jan 2022 00:35:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83956/nrf-connect-sdk-when-using-newlibc-floats-and-doubles-not-printed-by-printf" /><item><title>RE: NRF Connect SDK: when using newlibc, floats and doubles not printed by printf</title><link>https://devzone.nordicsemi.com/thread/349098?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 00:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e33fcb3-3688-4e10-b26a-ed4d8787d39e</guid><dc:creator>Jan_Erik</dc:creator><description>&lt;p&gt;Solution:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>