<?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: Can Splunk handle long digit number without rounding? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406813#M42867</link>
    <description>&lt;P&gt;@kamlesh_vaghela&lt;/P&gt;

&lt;P&gt;It's a nice idea using custom app to enable treat long digit decimals like as BigDecimal in Java.&lt;BR /&gt;
It is same as other computer language, implementation of real numbers in Splunk's has limitation.&lt;/P&gt;

&lt;P&gt;@woodcock &lt;BR /&gt;
I think the limitation is not problem essentially.&lt;BR /&gt;
However it may become potential of unexpected behaviors for non-technical user.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Dec 2018 02:07:12 GMT</pubDate>
    <dc:creator>takaakinakajima</dc:creator>
    <dc:date>2018-12-02T02:07:12Z</dc:date>
    <item>
      <title>Can Splunk handle long digit number without rounding?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406810#M42864</link>
      <description>&lt;P&gt;In v7.1.2, a SPL&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1 | eval num="1234567890123456789012345678901234567890"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returns &lt;CODE&gt;1234567890123456789012345678901234567890&lt;/CODE&gt; as string. However,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval num1="1234567890123456789012345678901234567890", num2=1
| eval total=num1+num2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returns rounded 'total' value &lt;CODE&gt;1234567890123456800000000000000000000000&lt;/CODE&gt;.&lt;BR /&gt;
(We want true result &lt;CODE&gt;1234567890123456789012345678901234567891&lt;/CODE&gt;.)&lt;/P&gt;

&lt;P&gt;Can we treat long digit decimal number correctly in SPL?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 08:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406810#M42864</guid>
      <dc:creator>takaakinakajima</dc:creator>
      <dc:date>2018-11-29T08:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk handle long digit number without rounding?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406811#M42865</link>
      <description>&lt;P&gt;@takaakinakajima&lt;/P&gt;

&lt;P&gt;It's hard to have it in SLP but you can try it by creating a custom command by writing basic mathematical operations. I have tried it with python. Maybe it will help you. Below are basic workaround what I did with python.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;&amp;gt;&amp;gt; a=123456789123456789123456789123456789123456789123456789123456789123456789123456789
&amp;gt;&amp;gt;&amp;gt; b=123456789123456789123456789123456789123456789123456789123456789123456789123456790
&amp;gt;&amp;gt;&amp;gt; c=a+b
&amp;gt;&amp;gt;&amp;gt; c
246913578246913578246913578246913578246913578246913578246913578246913578246913579L
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Happy Splunking&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 12:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406811#M42865</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-29T12:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk handle long digit number without rounding?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406812#M42866</link>
      <description>&lt;P&gt;You are cheating and complicating the actual problem by putting double-quotes around the value of &lt;CODE&gt;num&lt;/CODE&gt;.  There is a problem regardless.  Open a support ticket but do not expect that anything will be done to make it work.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 23:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406812#M42866</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-11-30T23:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk handle long digit number without rounding?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406813#M42867</link>
      <description>&lt;P&gt;@kamlesh_vaghela&lt;/P&gt;

&lt;P&gt;It's a nice idea using custom app to enable treat long digit decimals like as BigDecimal in Java.&lt;BR /&gt;
It is same as other computer language, implementation of real numbers in Splunk's has limitation.&lt;/P&gt;

&lt;P&gt;@woodcock &lt;BR /&gt;
I think the limitation is not problem essentially.&lt;BR /&gt;
However it may become potential of unexpected behaviors for non-technical user.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 02:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-Splunk-handle-long-digit-number-without-rounding/m-p/406813#M42867</guid>
      <dc:creator>takaakinakajima</dc:creator>
      <dc:date>2018-12-02T02:07:12Z</dc:date>
    </item>
  </channel>
</rss>

