<?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: Trouble with decimal settings ... again in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843045#M296237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Round(Num#(Value, '#,##0.#'),0.0001)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 13:17:14 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-06-29T13:17:14Z</dc:date>
    <item>
      <title>Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843036#M296228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a value that I have calculated in my script as &amp;gt;&amp;gt; 24,93051 &amp;lt;&amp;lt;.&lt;/P&gt;&lt;P&gt;Script settings are:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SET &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;ThousandSep&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='.';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;DecimalSep&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=',';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;MoneyThousandSep&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='.';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;MoneyDecimalSep&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=','; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So the comma should be used as decimal_separator - I know that QlikView calculates with the opposed settings internally. Right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So when I type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&amp;gt;&amp;nbsp; round([that value], '0.0001' &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;should not that round the output to four decimals?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Well, it doesn't. Instead this gives me 0.0025 or something.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So what do I have to do to get this value rounded to four decimals?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843036#M296228</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843037#M296229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use num() to format your number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843037#M296229</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-29T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843038#M296230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you have seems to work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET ThousandSep='.';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DecimalSep=',';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Round(Value, '0.0001') as NewValue;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;24,93051&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] (delimiter is '|');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/91165_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843038#M296230</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-29T12:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843039#M296231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(value,'###0.0000')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843039#M296231</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-29T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843040#M296232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;EM&gt;=Round('24,93051', 0.0001) &lt;/EM&gt;ir returns &lt;STRONG&gt;24,9305&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Remove the single quotes in 0.0001 to check if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843040#M296232</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-29T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843041#M296233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that gives me the strangest result of all - my value now is&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 115,69281 &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;When I go like that with the num() function, what I get is&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 116.##0,0000 &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;What is that supposed to be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843041#M296233</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T13:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843042#M296234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do I have to put the value that I want to round in quotes?&lt;/P&gt;&lt;P&gt;I'll try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843042#M296234</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843043#M296235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure, if you're using the value as a variable maybe it's using the comma, in something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Round(24,93051, 0.0001)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the single quote as delimiter for the number, without single quotes the comma used as decimal separator will be used as a parameter separator, wich can surely lead to some issue.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843043#M296235</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-29T13:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843044#M296236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that sounds logical. In fact I have had that issue elsewhere - that functions interpret the comma as the separator between different parameters.&lt;/P&gt;&lt;P&gt;The value is calculated in the LOAD statement. I use a variable (multiplied with a field from the table) - the variable has the dot as decimal_separator, but the field_value has the comma. That seems to cause the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK - when I insert a PRECEDING LOAD with a REPLACE() function, I can round it all right. let's see ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843044#M296236</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843045#M296237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Round(Num#(Value, '#,##0.#'),0.0001)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843045#M296237</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-29T13:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843046#M296238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply, remove the single quotes: =Round(24.09351, 0.0001)&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Num(24.93051, '#.###,####0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works for all cases above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843046#M296238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-29T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843047#M296239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have thought about the num# function already - but to be honest, I don't really understand how that works and so I am not sure how to use it.&lt;/P&gt;&lt;P&gt;You are not the first one to advise me to use that, giving the correct syntax - but, maybe because I have the software in German and the help_file is a strange mixture of english and German and does not really explain how the individual parameters of that function are made up, I don't understand how to use that.&lt;/P&gt;&lt;P&gt;Thanks a lot anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843047#M296239</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843048#M296240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use a Num format with a decimal indicator different to your system and.or environment, then you need to include the optional decimal parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(value,'###0.0000', '.')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(value,'###0.0000', '.', ' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 13:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843048#M296240</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-29T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843049#M296241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still haven't come to terms with this. I'll give you all the information I have, maybe someone can help me.&lt;/P&gt;&lt;P&gt;- My settings (on the "Main" tab) are in German format (the comma is the decimal_separator).&lt;/P&gt;&lt;P&gt;- I have one numeric variable coming from Excel; In Excel, it is also in German formatting&lt;/P&gt;&lt;P&gt;&amp;nbsp; =&amp;gt; Currently, I use a &amp;gt;&amp;gt; num(Replace('$(v_myvar)', ',', '.')) &amp;lt;&amp;lt; to turn the formatting around and make it&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numeric again.&lt;/P&gt;&lt;P&gt;- In the script I have two fields which I have to sum. One of them has variables (and is in German formatting), but&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I round the sum, so it is a numeric value without decimals.&lt;/P&gt;&lt;P&gt;- I multiply that rounded sum with the variable and I get a numeric value again - I can see in the table_viewer that&lt;BR /&gt;&amp;nbsp;&amp;nbsp; it is numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- There is a second value (also numeric) which has up to four decimals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; I want to round the first value to compare these two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is pretty complex. It would be helpful if anyone had a usable logical explanation of the num# function at hand (how to decide what the individual parameters must be) - the integrated help isn't really helpful here. Therefore I mess around with quotes to make it a string, REPLACEing characters and num() to make it numeric again. I guess that screws up my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843049#M296241</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-29T14:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843050#M296242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I don't understand the issue, can you upload a sample?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a simple example:&lt;/P&gt;&lt;P&gt;-Created Excel with value 24,93051 in cell A1.&lt;/P&gt;&lt;P&gt;- Loaded and applied round, PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Spain we also have comma as decimal separator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843050#M296242</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-29T14:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843051#M296243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't fully understand myself what the actual issue is. It is quite complicated as and yesterday was already pretty hot - our office is always 2-3 degrees warmer than outside ...&lt;/P&gt;&lt;P&gt;I will try again today.&lt;/P&gt;&lt;P&gt;The thing is this:&lt;/P&gt;&lt;P&gt;- My app actually compares two reports, both of them in Excel&lt;/P&gt;&lt;P&gt;- In each of these reports, there are some time_measures and financial figures;&lt;/P&gt;&lt;P&gt;- There are a rather large nr. of records where, acc. to my analysis, the times are equal - everything is equal - but&lt;BR /&gt;&amp;nbsp;&amp;nbsp; the financials are still different.&lt;/P&gt;&lt;P&gt;=&amp;gt; That is what I actually want to analyze. I am pretty sure that it's a rounding thing, Now I have a numeric variable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; that is also forthcoming from an Excel file and I think that's where the error lies. Let's see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there maybe some document or blog_post around that clearly explains how I have to build up the individual parameters for the num#() function? As I said, the integrated help isn't very helpful in this instance and I think that would really help me.&lt;/P&gt;&lt;P&gt;The syntax that Sasidhar proposed seems to work, but I don't understand it. As I said, the help_file here mixes up German and English (and the formats) and it is kept very short (and incomplete) and rather adds to confusion ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 06:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843051#M296243</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-30T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843052#M296244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that the issue, like some of you have already suggested, is the "comma". Even when a value is numeric all right, when it has a "comma", that is interpreted as the separator between parameters, even when the settings on the "Main" tab of the script are such that the "comma" is the decimal_separator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843052#M296244</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-30T07:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843053#M296245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;HI DataNibbler,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Please go through this thread to understand about the num# function &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;A href="https://community.qlik.com/thread/37295"&gt;understanding the 'num#' function&lt;/A&gt;‌&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor923"&gt;&lt;/A&gt;Num#&lt;/H1&gt;&lt;P class="syntax" style="font-size: 13.3333330154419px;"&gt;&lt;SPAN class="Bold"&gt;num#(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expression [ , format-code[ , decimal-sep [ , thousands-sep] ] ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&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;/P&gt;&lt;P class="example" style="font-size: 13.3333330154419px;"&gt;Examples:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The examples below assume the two following operating system settings:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto; font-size: 13.3333330154419px;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;Default setting 1 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;Default setting 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;Number format &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;# ##0,# &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;#,##0.# &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN class="Bold"&gt;num#( A, '#' )&lt;/SPAN&gt; where A=35,648.375 returns:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto; font-size: 13.3333330154419px;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 1 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;String &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;35,648.375 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;Number &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="center" class="Bold" style="text-align: center;"&gt; - &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN class="Bold"&gt;num#( A, '#.#', '.' , ',')&lt;/SPAN&gt; where A=35,648.375 returns:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto; font-size: 13.3333330154419px;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 1 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;String &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35,648.375 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35,648.375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;Number &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN class="Bold"&gt;num#( A, '#.#',',','.' )&lt;/SPAN&gt; where A=35648.375 returns:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto; font-size: 13.3333330154419px;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 1 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;String &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648.375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;Number &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648375 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;35648375 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN class="Bold"&gt;num#( A, 'abc#,#' )&lt;/SPAN&gt; where A=abc123,4 returns:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto; font-size: 13.3333330154419px;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 1 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P class="Bold"&gt;Setting 2 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;String &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;abc123,4 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;abc123,4 &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;&lt;P class="Bold"&gt;Number &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyF-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;123.4 &lt;/P&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P align="right" class="Bold" style="text-align: right;"&gt;1234&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843053#M296245</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-30T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843054#M296246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Avinash!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pasted text from the help_file doesn't help me on - I have read that a few times &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; That's why I said that the help isn't really helpful here. But I will read through that post. I can't really believe that everyone else but me understands this function?&lt;/P&gt;&lt;P&gt;Anyway, if I understand it from that thread, I will make a short explanatory document out of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843054#M296246</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-30T07:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with decimal settings ... again</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843055#M296247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, essentially, the parameters I pass to the num#() function tell QlikView how I WANT the figure to be interpreted, not how it IS, right?&lt;/P&gt;&lt;P&gt;I didn't know about the exact function of the # vs. 0 either ... I see there is still a lot to learn.&lt;/P&gt;&lt;P&gt;(in my instance, the value is formatted as a number in Excel and reads &amp;gt;&amp;gt; 0,4017 &amp;lt;&amp;lt; - but apparently, the "comma" is causing problems all along the way - the numbers might all be numeric all right and still, in the end I have two values looking quite the same, both with four decimals (and the same decimal_sign) - but an IF_query tells me they are not equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, do I necessarily have to wrap the first parameter (the original value I have) in quotes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 07:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-decimal-settings-again/m-p/843055#M296247</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-30T07:32:01Z</dc:date>
    </item>
  </channel>
</rss>

