<?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 Rounding Decimal Places in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72106#M18022</link>
    <description>&lt;P&gt;Hi,
I have the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart eval(sum(Failed)/sum(TotalEvents)*100) AS PercentFailed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to round the value that it produces to 2 decimal places.  I have been unsuccessful trying to add in the round command.  Anyone have any suggestions on how to do this?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2010 22:53:53 GMT</pubDate>
    <dc:creator>cramasta</dc:creator>
    <dc:date>2010-10-18T22:53:53Z</dc:date>
    <item>
      <title>Rounding Decimal Places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72106#M18022</link>
      <description>&lt;P&gt;Hi,
I have the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart eval(sum(Failed)/sum(TotalEvents)*100) AS PercentFailed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to round the value that it produces to 2 decimal places.  I have been unsuccessful trying to add in the round command.  Anyone have any suggestions on how to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2010 22:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72106#M18022</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2010-10-18T22:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Decimal Places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72107#M18023</link>
      <description>&lt;P&gt;You can use round as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart eval(round((sum(Failed)/sum(TotalEvents)*100),2)) AS PercentFailed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Oct 2010 00:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72107#M18023</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-10-19T00:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding Decimal Places</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72108#M18024</link>
      <description>&lt;P&gt;thank you so much !&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2010 02:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rounding-Decimal-Places/m-p/72108#M18024</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2010-10-19T02:07:34Z</dc:date>
    </item>
  </channel>
</rss>

