<?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>Problem using lib math.h in NCS v2.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97675/problem-using-lib-math-h-in-ncs-v2-2-0</link><description>Hi, I&amp;#180;m updating my project from nRF5 to NCS v2.2.0 but I got a problem with math.h., I had to add in proj.config: 
 
 CONFIG_NEWLIB_LIBC =y 
 
 to recognize the library but functions like: 
 
 pow, and log functions are returning 0, not the correct values</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2023 12:49:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97675/problem-using-lib-math-h-in-ncs-v2-2-0" /><item><title>RE: Problem using lib math.h in NCS v2.2.0</title><link>https://devzone.nordicsemi.com/thread/415451?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 12:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a47066b3-5cb0-44d4-ad6d-0b7a58bfccea</guid><dc:creator>Brunelli</dc:creator><description>&lt;p&gt;I solved the problem, it was an error in the variable that entered that the value was greater than the declared variable uint16_t.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem using lib math.h in NCS v2.2.0</title><link>https://devzone.nordicsemi.com/thread/415408?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 10:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063aa7a4-a1b9-452b-a68f-90a6ca966423</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share your build file and show me how you&amp;#39;re calling the functions such as pow()?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>