<?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 hex to decimal in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/1674992#M449704</link>
    <description>&lt;P&gt;Hi, I can see it is an old post, but maybe I will be lucky&amp;nbsp; and you have the solution for decoding hec to decima woth two's compliment? I am currently struggling with that in Qlik Sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 18:29:56 GMT</pubDate>
    <dc:creator>monkrupa</dc:creator>
    <dc:date>2020-02-12T18:29:56Z</dc:date>
    <item>
      <title>Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550712#M205670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to convert a hex value to decimal ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is first to extract the value of a Windows registry key using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;GetRegistryString(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;, ActiveTimeBias&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This registry key contains the current time bias in minutes from UTC, which I then want to use to display times stored as UTC but then converted to local time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2013 14:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550712#M205670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-21T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550713#M205671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can, like below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Num#('C7','(HEX)'))&amp;nbsp; // this will give you 199 which is decimal equivalent of hexadecimal C7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, replace C7 with your hexadecimal number to get equivalent decimal. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 08:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550713#M205671</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-09-22T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550714#M205672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Tresesco&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry it has taken me a while to check out your answer, which answers my question re &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;converting a hex value to decimal perfectly - so I have marked it as correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it appears that the value returned from the registry is &lt;EM&gt;ffffffc4 &lt;/EM&gt;which should return a value of -60 using two's compliment as a &lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/Signed_number_representation" style="color: #0b0080; font-family: sans-serif;" title="Signed number representation"&gt;signed number representation&lt;/A&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;............... I need to do some more thinking about this............ unless someone has a cunning suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/550714#M205672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-25T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/1674992#M449704</link>
      <description>&lt;P&gt;Hi, I can see it is an old post, but maybe I will be lucky&amp;nbsp; and you have the solution for decoding hec to decima woth two's compliment? I am currently struggling with that in Qlik Sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/1674992#M449704</guid>
      <dc:creator>monkrupa</dc:creator>
      <dc:date>2020-02-12T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/1866940#M1216370</link>
      <description>&lt;P&gt;I made a report on QlikView licenses for myself using the file CalData.pgo.xml&lt;/P&gt;
&lt;P&gt;and I ran into a non - critical problem of converting hex to date .. but without this transformation, the report would not be complete&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;. ‌‌ (LastUsed, ToBeDeleted)&lt;BR /&gt;In general, I was looking for it, but I didn't find anything useful right away, except for converting 13x hex to excel.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Excell  hex to date" style="width: 925px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67965iD2E3925595141083/image-size/large?v=v2&amp;amp;px=999" role="button" title="HEX_EXCELL.png" alt="Excell  hex to date" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Excell  hex to date&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But in the file CalData.pgo.xml the date is set in 16 digits, not 13.. I did not understand how to adapt the excel formula for 16 digits, but I realized that it is possible to trim a 16-bit hex to 13 digits. and it seems that nothing significant is lost at the same time&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it works perfectly&lt;BR /&gt;=date((num(Num#(right([PerDocumentCalData/NamedCalsAllocated/CalAllocEntry.LastUsed],13),'(HEX)') )*pow(16,-13)+1)*Pow(2,15),'DD.MM.YYYY hh:mm') &lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 08:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/1866940#M1216370</guid>
      <dc:creator>Grolmag</dc:creator>
      <dc:date>2021-12-06T08:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex to decimal</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/2471178#M1225934</link>
      <description>&lt;P&gt;yes it is possible You can use &lt;A href="https://hextodec.org/" target="_self"&gt;this&lt;/A&gt; online tool to convert your hex value to decimal within a few seconds.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-hex-to-decimal/m-p/2471178#M1225934</guid>
      <dc:creator>Tony011</dc:creator>
      <dc:date>2024-07-17T12:04:33Z</dc:date>
    </item>
  </channel>
</rss>

