Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. [Solved]Double Word to int conversion problem
Forum Updated to NodeBB v4.3 + New Features

[Solved]Double Word to int conversion problem

Scheduled Pinned Locked Moved C++ Gurus
4 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ceora
    wrote on last edited by
    #1

    Hi i have problems on converting this hexadecimal value:
    Basically i have to read this value from a file and converting it in integer or decimal, from file specification
    this value "3390014B" should become this "21705616" I've tried almost every base conversion but no one give me the same result. On file specification this is Double Word and the returned value is DInt. Someone have any idea what kind of conversion happen here???

    Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Arnaut
      wrote on last edited by
      #2

      Hi there,

      it seems that 3390014B (3390|014B)represents the hex value 014B3390 ( 014B|3390) which is 21705616.

      Regards,
      H.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ceora
        wrote on last edited by
        #3

        OK I've partially solved: now "ADA0432E" should return "174,6782"

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ceora
          wrote on last edited by
          #4

          Finally did it! It seems like it's a IEEE-754 floating to hex representation. Thanks for the help!!!

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved