<?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: tonumber command returns a null value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tonumber-command-returns-a-null-value/m-p/147849#M41341</link>
    <description>&lt;P&gt;This has been identified as a bug and is targeted to be fixed in the 6.2.5 maintenance release (~Sept/Oct 2015)&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2015 20:25:37 GMT</pubDate>
    <dc:creator>rphillips_splk</dc:creator>
    <dc:date>2015-06-10T20:25:37Z</dc:date>
    <item>
      <title>tonumber command returns a null value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tonumber-command-returns-a-null-value/m-p/147848#M41340</link>
      <description>&lt;P&gt;why does the tonumber command return a null value when the string being evaluated contains a space?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;example:&lt;/STRONG&gt;&lt;BR /&gt;
string padded by a space character before the 1 returns null:&lt;BR /&gt;
| stats count| eval test=" 1"|eval me=tonumber(test)&lt;/P&gt;

&lt;P&gt;removing the padding returns a value:&lt;BR /&gt;
| stats count| eval test="1"|eval me=tonumber(test)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;workaround for strings with spaces:&lt;/STRONG&gt;&lt;BR /&gt;
| stats count| eval test=" 1"|eval me=trim(test)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 20:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tonumber-command-returns-a-null-value/m-p/147848#M41340</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2015-06-10T20:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: tonumber command returns a null value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tonumber-command-returns-a-null-value/m-p/147849#M41341</link>
      <description>&lt;P&gt;This has been identified as a bug and is targeted to be fixed in the 6.2.5 maintenance release (~Sept/Oct 2015)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 20:25:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tonumber-command-returns-a-null-value/m-p/147849#M41341</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2015-06-10T20:25:37Z</dc:date>
    </item>
  </channel>
</rss>

