<?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: Number format: what is the difference between the num and num# functions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365052#M492071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, it is clearer now. However I am still struggling on my original problem: I want to get a number formatted with a dot ('.') as decimal separator and no thousand separator, while keeping all non-zero digits in the decimal part, without any dependencies on the current system formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried (X being the number I want to format):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(X, '#.#', '.', '')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;But it does not work as I want: it rounds X to display only its first decimal digit. I can add some '#' after the decimal in my format but in this case a value of "0.5" will be display as "0.5000000".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;My goal is to be able to parse a long string containing both text and number values without having to worry about the locale system settings (for an extension object). Do you know how I can achieve that?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2012 13:31:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-24T13:31:35Z</dc:date>
    <item>
      <title>Number format: what is the difference between the num and num# functions?</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365050#M492069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot understand the difference between the num and num# functions. &lt;/P&gt;&lt;P&gt;The documentation says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;SPAN class="Bold"&gt;num&lt;/SPAN&gt; function formats the &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; numerically according to the string given as &lt;SPAN class="Italic"&gt;format-code&lt;/SPAN&gt;. Decimal separator and thousands separator can be set as third and fourth parameters. If the parameters 2-4 are omitted, the number format set in the operating system is used.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The &lt;SPAN class="Bold"&gt;num#&lt;/SPAN&gt; function evaluates the expression numerically according to the string given as format-code. Decimal separator and thousands separator can be set as third and fourth parameters. If the parameters 2-4 are omitted, the default number format set by script variables or in the operating system is used.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody explain the difference in a clearer way?&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 12:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365050#M492069</guid>
      <dc:creator />
      <dc:date>2012-07-24T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Number format: what is the difference between the num and num# functions?</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365051#M492070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Number: 1234.56&lt;/P&gt;&lt;P&gt;Number representation string: 1,234.56&lt;/P&gt;&lt;P&gt;format-code: #,###,##&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Number = &lt;STRONG&gt;Num#&lt;/STRONG&gt;(Number representation string, format-code);&lt;/P&gt;&lt;P&gt;Number representation string = &lt;STRONG&gt;Num&lt;/STRONG&gt;(Number, format-code);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365051#M492070</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-24T13:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Number format: what is the difference between the num and num# functions?</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365052#M492071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, it is clearer now. However I am still struggling on my original problem: I want to get a number formatted with a dot ('.') as decimal separator and no thousand separator, while keeping all non-zero digits in the decimal part, without any dependencies on the current system formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried (X being the number I want to format):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(X, '#.#', '.', '')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;But it does not work as I want: it rounds X to display only its first decimal digit. I can add some '#' after the decimal in my format but in this case a value of "0.5" will be display as "0.5000000".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;My goal is to be able to parse a long string containing both text and number values without having to worry about the locale system settings (for an extension object). Do you know how I can achieve that?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365052#M492071</guid>
      <dc:creator />
      <dc:date>2012-07-24T13:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Number format: what is the difference between the num and num# functions?</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365053#M492072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try &lt;STRONG&gt;Num(X, '#####.#')&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to limit the number of decimals, you may use &lt;STRONG&gt;round()&lt;/STRONG&gt; function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 17:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365053#M492072</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-24T17:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Number format: what is the difference between the num and num# functions?</title>
      <link>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365054#M492073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I tried but this is not what I am looking for. I want the number to have as many digits as necessary to prevent precision loss but do not want trailing zeroes if they are not needed.&lt;/P&gt;&lt;P&gt;If I use num(X, '####.#') then I get only one digit after the decimal separator, and the number is rounded if there are more digits needed. &lt;/P&gt;&lt;P&gt;How can I have 3 digits for "4.839" and only one for "5.6"? It seems that I am stuck with either "4.8" and "5.6" OR "4.839" and "5.600"....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 08:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-format-what-is-the-difference-between-the-num-and-num/m-p/365054#M492073</guid>
      <dc:creator />
      <dc:date>2012-07-25T08:14:00Z</dc:date>
    </item>
  </channel>
</rss>

