<?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 Re: How to round a decimal up to the nearest whole number? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224200#M188269</link>
    <description>&lt;P&gt;Hi  jclemons,&lt;/P&gt;

&lt;P&gt;I believe you can use round fucntion.&lt;/P&gt;

&lt;P&gt;round(fieldname,2)  here 2 is for 2 decimal points.&lt;/P&gt;

&lt;P&gt;In your case round(fieldname,0)&lt;/P&gt;

&lt;P&gt;-Krishna Rajapantula&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2015 05:30:18 GMT</pubDate>
    <dc:creator>krishnarajapant</dc:creator>
    <dc:date>2015-09-15T05:30:18Z</dc:date>
    <item>
      <title>How to round a decimal up to the nearest whole number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224198#M188267</link>
      <description>&lt;P&gt;Hello.. is there anyway to round a decimal UP to the nearest whole number?  (e.g.. I would like 0.1 to be 1, 8.00001 to be 9, 8.56 to be 9 etc..)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 05:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224198#M188267</guid>
      <dc:creator>jclemons7</dc:creator>
      <dc:date>2015-09-15T05:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a decimal up to the nearest whole number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224199#M188268</link>
      <description>&lt;P&gt;look at the &lt;STRONG&gt;ceiling&lt;/STRONG&gt; function, it rounds up.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.6/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.6/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;ceil(X), ceiling(X) &lt;BR /&gt;
This function rounds a number X up to the next highest integer. &lt;BR /&gt;
This example returns n=2:&lt;BR /&gt;
... | eval n=ceil(1.9)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 05:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224199#M188268</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-09-15T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a decimal up to the nearest whole number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224200#M188269</link>
      <description>&lt;P&gt;Hi  jclemons,&lt;/P&gt;

&lt;P&gt;I believe you can use round fucntion.&lt;/P&gt;

&lt;P&gt;round(fieldname,2)  here 2 is for 2 decimal points.&lt;/P&gt;

&lt;P&gt;In your case round(fieldname,0)&lt;/P&gt;

&lt;P&gt;-Krishna Rajapantula&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 05:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-decimal-up-to-the-nearest-whole-number/m-p/224200#M188269</guid>
      <dc:creator>krishnarajapant</dc:creator>
      <dc:date>2015-09-15T05:30:18Z</dc:date>
    </item>
  </channel>
</rss>

