<?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: HEX Numbers in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/HEX-Numbers/m-p/1747112#M178820</link>
    <description>&lt;P&gt;That is easy enough:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the file as "acess = 'stream' - this defaults to unformatted reading&lt;/LI&gt;&lt;LI&gt;Then in a loop, read one real at a time&lt;/LI&gt;&lt;LI&gt;Print the real&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you want some code (not tested, so caveat emptor for typos):&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;integer :: i
real :: x
open( 10, file = 'mydata', access = 'stream' )
do i = 1,20
    read( 10 ) x
    write(*,*) x
enddo&lt;/LI-CODE&gt;&lt;P&gt;If you get sensible numbers, then you know you are on the right track. Looking at the screenshots, I'd say, this should do it.&lt;/P&gt;&lt;P&gt;Of course, I have no idea what the internal organisation of the file is (grouping of the data in records or the like).&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2026 13:45:30 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2026-05-07T13:45:30Z</dc:date>
    <item>
      <title>HEX Numbers</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/HEX-Numbers/m-p/1747106#M178819</link>
      <description>&lt;P&gt;My education is clearly sorely lacking in terms of real numbers in Hex or Binary Format.&lt;/P&gt;&lt;P&gt;I have a binary file that I can nicely read with Hex Editor.&amp;nbsp; I found after a few weeks of using the program it has a button to turn the hex code in real4 numbers as shown.&amp;nbsp; The first column is just small count column, the second column is the barometric pressure, the third is random garbage and the fourth is some counter. Each line is one second apart in real time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-05-07 071134.png" style="width: 550px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/72508i1FFE89236889C484/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot 2026-05-07 071134.png" alt="Screenshot 2026-05-07 071134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I understand how the 7c307c44 can be translated to a large decimal, but how in Fortran do I get the real number that is within the Hex code.&amp;nbsp; &amp;nbsp;The JSON file for this dat file says they are floats, which I assume is C standard.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-05-07 082850.png" style="width: 689px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/72509i86E0D50A53719478/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot 2026-05-07 082850.png" alt="Screenshot 2026-05-07 082850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 13:34:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/HEX-Numbers/m-p/1747106#M178819</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2026-05-07T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: HEX Numbers</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/HEX-Numbers/m-p/1747112#M178820</link>
      <description>&lt;P&gt;That is easy enough:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open the file as "acess = 'stream' - this defaults to unformatted reading&lt;/LI&gt;&lt;LI&gt;Then in a loop, read one real at a time&lt;/LI&gt;&lt;LI&gt;Print the real&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you want some code (not tested, so caveat emptor for typos):&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;integer :: i
real :: x
open( 10, file = 'mydata', access = 'stream' )
do i = 1,20
    read( 10 ) x
    write(*,*) x
enddo&lt;/LI-CODE&gt;&lt;P&gt;If you get sensible numbers, then you know you are on the right track. Looking at the screenshots, I'd say, this should do it.&lt;/P&gt;&lt;P&gt;Of course, I have no idea what the internal organisation of the file is (grouping of the data in records or the like).&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 13:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/HEX-Numbers/m-p/1747112#M178820</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2026-05-07T13:45:30Z</dc:date>
    </item>
  </channel>
</rss>

