<?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>nRF52 printf float in SES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30535/nrf52-printf-float-in-ses</link><description>What&amp;#39;s the trick for printing floats in Segger Embedded Studio (SES) on the nRF52?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Feb 2018 22:21:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30535/nrf52-printf-float-in-ses" /><item><title>RE: nRF52 printf float in SES</title><link>https://devzone.nordicsemi.com/thread/120908?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 22:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c691325-3b95-4253-94b8-16f067564c1e</guid><dc:creator>Rob C</dc:creator><description>&lt;p&gt;I figured it out:&amp;nbsp; Open project options, select Common configuration.&amp;nbsp; Type &amp;quot;float&amp;quot; in the options search.&amp;nbsp; Change &amp;quot;PrintF Floating Point Supported from &amp;quot;No&amp;quot; to &amp;quot;Float&amp;quot;.&lt;/p&gt;
&lt;p&gt;printf() and sprintf() then seem to work&lt;/p&gt;
&lt;p&gt;NRF_LOG&amp;nbsp;works too, but have to remember to use&amp;nbsp;NRF_LOG_FLOAT_MARKER and NRF_LOG_FLOAT(), and is limited to 2 digits right of the decimal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>