<?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>Can&amp;#39;t print floats</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107607/can-t-print-floats</link><description>Hello, 
 I&amp;#39;m trying to print a float using my Thingy91 and Segger EDU Mini. 
 It prints my printk statements (but not the values), but printf is completely ignored. Trying to use printk just outputs the value as *float*. 
 Code: 
 
 
 
 
 
 
 
 Outputs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jan 2024 14:43:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107607/can-t-print-floats" /><item><title>RE: Can't print floats</title><link>https://devzone.nordicsemi.com/thread/465374?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 14:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b688baa1-d173-408a-8d56-8f5738d69c2b</guid><dc:creator>Lars Fagerbakke</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/mati"&gt;Mati&lt;/a&gt;&amp;nbsp; Adding CONFIG_FPU=y to proj.conf did the trick!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't print floats</title><link>https://devzone.nordicsemi.com/thread/465320?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 13:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97d9bf69-6b9f-47b8-a584-f6fc24469aca</guid><dc:creator>Mati</dc:creator><description>&lt;p&gt;Try to add to prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_FPU=y&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If it will not work - try to use LOG_INF and check config settings below:&lt;br /&gt;CONFIG_USE_SEGGER_RTT=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;br /&gt;CONFIG_LOG_BACKEND_UART=n&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>