<?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 Variable assignment results in different notation for positive and negative values. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-assignment-results-in-different-notation-for-positive/m-p/2544763#M109723</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've run into something strange with value assignment of variables. The notation of a negative variable differs from that of a positive one. The following script results in vPos = 0.05 where vNeg = -0,05.&amp;nbsp;This is problematic when using the variable in charts.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The expected result is vPos = 0.05 and vNeg = -0.05. Instead of the comma notation in vNeg.&lt;/P&gt;&lt;P&gt;I'm running the Qlik Sense Novermber 2025 patch 2.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;SET ThousandSep='.';
SET DecimalSep=',';
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='€ #.##0,00;€ -#.##0,00';
SET TimeFormat='hh:mm:ss';
SET DateFormat='DD-MM-YYYY';
SET TimestampFormat='DD-MM-YYYY hh:mm:ss[.fff]';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='nl-NL';
SET CreateSearchIndexOnReload=1;
SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';
SET LongMonthNames='januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december';
SET DayNames='ma;di;wo;do;vr;za;zo';
SET LongDayNames='maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag;zondag';
SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';


let vPos = 0.05;
let vNeg = -0.05;&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="case.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187299i5205C8D1D10BDA5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="case.png" alt="case.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2026 08:14:16 GMT</pubDate>
    <dc:creator>dennemanr</dc:creator>
    <dc:date>2026-03-13T08:14:16Z</dc:date>
    <item>
      <title>Variable assignment results in different notation for positive and negative values.</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-assignment-results-in-different-notation-for-positive/m-p/2544763#M109723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've run into something strange with value assignment of variables. The notation of a negative variable differs from that of a positive one. The following script results in vPos = 0.05 where vNeg = -0,05.&amp;nbsp;This is problematic when using the variable in charts.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The expected result is vPos = 0.05 and vNeg = -0.05. Instead of the comma notation in vNeg.&lt;/P&gt;&lt;P&gt;I'm running the Qlik Sense Novermber 2025 patch 2.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;SET ThousandSep='.';
SET DecimalSep=',';
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='€ #.##0,00;€ -#.##0,00';
SET TimeFormat='hh:mm:ss';
SET DateFormat='DD-MM-YYYY';
SET TimestampFormat='DD-MM-YYYY hh:mm:ss[.fff]';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='nl-NL';
SET CreateSearchIndexOnReload=1;
SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';
SET LongMonthNames='januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december';
SET DayNames='ma;di;wo;do;vr;za;zo';
SET LongDayNames='maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag;zondag';
SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';


let vPos = 0.05;
let vNeg = -0.05;&lt;/LI-CODE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="case.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187299i5205C8D1D10BDA5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="case.png" alt="case.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 08:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-assignment-results-in-different-notation-for-positive/m-p/2544763#M109723</guid>
      <dc:creator>dennemanr</dc:creator>
      <dc:date>2026-03-13T08:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable assignment results in different notation for positive and negative values.</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-assignment-results-in-different-notation-for-positive/m-p/2544764#M109724</link>
      <description>&lt;P&gt;I've figured it out.&lt;/P&gt;&lt;P&gt;The - in -0.05 performs and operation after which the value changes to respect the decimal point notation in the script. When vPos is written as 1*0.05 the notation changes to 0,05 as well.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 08:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-assignment-results-in-different-notation-for-positive/m-p/2544764#M109724</guid>
      <dc:creator>dennemanr</dc:creator>
      <dc:date>2026-03-13T08:25:12Z</dc:date>
    </item>
  </channel>
</rss>

