<?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>Using math.h on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43631/using-math-h-on-nrf9160</link><description>I&amp;#39;m trying to build a custom version of the example SAADC code provided here: 
 https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/adc/src/main.c 
 and I&amp;#39;m trying to include math.h to use the log(x) function. The only code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Feb 2019 17:07:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43631/using-math-h-on-nrf9160" /><item><title>RE: Using math.h on nRF9160</title><link>https://devzone.nordicsemi.com/thread/170966?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 17:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9751ffeb-de2a-4528-9e55-3456614e1ab3</guid><dc:creator>JustWalt</dc:creator><description>&lt;p&gt;This solved it. Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using math.h on nRF9160</title><link>https://devzone.nordicsemi.com/thread/170777?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 08:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b852b17d-cf8e-490c-ab2d-70758f0d13aa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you try to add&amp;nbsp;&lt;span&gt;CONFIG_NEWLIB_LIBC=y in your prj.conf, and see if that solves the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>