<?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 do I cut the designated decimal place based on numerical number? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72387#M180942</link>
    <description>&lt;P&gt;I don't know if there is a command to directly provide result as you required. But I think you can do sth like this:&lt;/P&gt;

&lt;P&gt;| eval value_new=round(floor(value_old*100)/100,2)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:00:44 GMT</pubDate>
    <dc:creator>cyue_splunk</dc:creator>
    <dc:date>2020-09-28T13:00:44Z</dc:date>
    <item>
      <title>How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72385#M180940</link>
      <description>&lt;P&gt;Say, I have come up with the result value, 3.9999.&lt;/P&gt;

&lt;P&gt;I want the rest of decimal places gone after the second decimal place as in 3.9999.&lt;BR /&gt;
 What would you suggest?&lt;/P&gt;

&lt;P&gt;FYI, I don't want "round(3.9999, 2).'&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2012 05:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72385#M180940</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-24T05:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72386#M180941</link>
      <description>&lt;P&gt;For example,&lt;BR /&gt;
    I want 3.9999 to be cut into 3.99, not into 4.00, or &lt;BR /&gt;
    I want 3.1634 to be cut into 3.16, not into 3.20.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2012 05:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72386#M180941</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2012-12-24T05:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72387#M180942</link>
      <description>&lt;P&gt;I don't know if there is a command to directly provide result as you required. But I think you can do sth like this:&lt;/P&gt;

&lt;P&gt;| eval value_new=round(floor(value_old*100)/100,2)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72387#M180942</guid>
      <dc:creator>cyue_splunk</dc:creator>
      <dc:date>2020-09-28T13:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72388#M180943</link>
      <description>&lt;P&gt;you could use a regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=value (?&amp;lt;value&amp;gt;^-?\d+\.\d{2})\d+$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Dec 2012 08:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72388#M180943</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-12-24T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72389#M180944</link>
      <description>&lt;P&gt;syusjk6 - thank you for assigning me rep &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
The usual way is to click on the grey up arrow to the left of the answer if it helped you out. And if it answered your question completely, accept the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2012 18:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72389#M180944</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-12-27T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I cut the designated decimal place based on numerical number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72390#M180945</link>
      <description>&lt;P&gt;Thanks. This helped.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 23:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-cut-the-designated-decimal-place-based-on-numerical/m-p/72390#M180945</guid>
      <dc:creator>syusjk6</dc:creator>
      <dc:date>2013-01-16T23:59:20Z</dc:date>
    </item>
  </channel>
</rss>

