<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic round funtion usage to round the decimal dgits after the precision in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63295#M180267</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have been using the &lt;STRONG&gt;stats avg(duration) as Avg_Duration&lt;/STRONG&gt; in my query.But while displayin the Avg_Duration i am getting the output value with 6 decimal digits after the precision.Something like 2.123456 i would like to round it off to four digits only.Tried using the round function along with the stats command..but it didnt worked.&lt;/P&gt;

&lt;P&gt;Please help me on this .Thanx&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2012 08:09:24 GMT</pubDate>
    <dc:creator>rakesh_498115</dc:creator>
    <dc:date>2012-05-30T08:09:24Z</dc:date>
    <item>
      <title>round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63295#M180267</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have been using the &lt;STRONG&gt;stats avg(duration) as Avg_Duration&lt;/STRONG&gt; in my query.But while displayin the Avg_Duration i am getting the output value with 6 decimal digits after the precision.Something like 2.123456 i would like to round it off to four digits only.Tried using the round function along with the stats command..but it didnt worked.&lt;/P&gt;

&lt;P&gt;Please help me on this .Thanx&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 08:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63295#M180267</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-05-30T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63296#M180268</link>
      <description>&lt;P&gt;Just add an &lt;CODE&gt;eval&lt;/CODE&gt; after your stats command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats avg(duration) as Avg_Duration | eval Avg_Duration=round(Avg_Duration,4)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 May 2012 10:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63296#M180268</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-30T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63297#M180269</link>
      <description>&lt;P&gt;Well this is awkward, we both appear to have answered the same question in different threads... suppose I should offer you an upvote as a highfive&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 10:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63297#M180269</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-05-30T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63298#M180270</link>
      <description>&lt;P&gt;Upvote returned. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 10:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63298#M180270</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-30T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63299#M180271</link>
      <description>&lt;P&gt;Thank you so much !&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 07:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63299#M180271</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-05-31T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: round funtion usage to round the decimal dgits after the precision</title>
      <link>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63300#M180272</link>
      <description>&lt;P&gt;No problem. Could you please mark my answer as accepted? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2012 09:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/round-funtion-usage-to-round-the-decimal-dgits-after-the/m-p/63300#M180272</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-31T09:10:40Z</dc:date>
    </item>
  </channel>
</rss>

