<?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: Convert integer to decimal in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-integer-to-decimal/m-p/624848#M217219</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250570"&gt;@isac_santana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to convert an integer number to decimal, try dividing the number as shown below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| eval Amount = balance_amount/100&lt;/P&gt;&lt;P&gt;If this helps an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manasa&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 13:00:57 GMT</pubDate>
    <dc:creator>Manasa_401</dc:creator>
    <dc:date>2022-12-20T13:00:57Z</dc:date>
    <item>
      <title>How can I convert integer to decimal?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-integer-to-decimal/m-p/624846#M217217</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good Morning,&lt;BR /&gt;I'm having trouble converting a whole number to a decimal.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval Amount = round(tonumber(balance_amount), 2)
Result: 814118225.00&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But I need the number to look like:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;8141182.25&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-integer-to-decimal/m-p/624846#M217217</guid>
      <dc:creator>isac_santana</dc:creator>
      <dc:date>2022-12-20T14:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert integer to decimal</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-integer-to-decimal/m-p/624848#M217219</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250570"&gt;@isac_santana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to convert an integer number to decimal, try dividing the number as shown below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| eval Amount = balance_amount/100&lt;/P&gt;&lt;P&gt;If this helps an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manasa&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-integer-to-decimal/m-p/624848#M217219</guid>
      <dc:creator>Manasa_401</dc:creator>
      <dc:date>2022-12-20T13:00:57Z</dc:date>
    </item>
  </channel>
</rss>

