S
skerrick32
Hello,
I am trying to convert a little endian hex number that represents an 8
byte double to the decimal representation of that double. I found some
code that goes from double to hex but I what I need is the opposite.
Can anyone help? Here is the double to hex code.
my $real = 1/7;
my $packed_double = pack "d", $real;
my $hex_double = sprintf("%04X%04X", unpack("LL", pack("d", $real)));
What I need is the opposite.
Thanks
Eric
I am trying to convert a little endian hex number that represents an 8
byte double to the decimal representation of that double. I found some
code that goes from double to hex but I what I need is the opposite.
Can anyone help? Here is the double to hex code.
my $real = 1/7;
my $packed_double = pack "d", $real;
my $hex_double = sprintf("%04X%04X", unpack("LL", pack("d", $real)));
What I need is the opposite.
Thanks
Eric