Hi,
According to this calculator site (link text) ,
when converting 3 from dec to double I get 4008 0000 0000 0000
When using Perl pack function, with the parameter "d>*" , I expected to see 4008 0000 0000 0000
as I use this function:
print $File pack("d>*",3);
But when I "Hexdump" to the Perl output file, I see 0840 0000 0000 0000
I thought that it might belong to the big/little endian, but when trying the little endian:
print $File pack("d<*",3);
I get this: 0000 0000 0000 4008
What shell I do if I want to get this result 4008 0000 0000 0000
from Perl pack output ?
Thanks.
By the way, when using "Float" - every thing works like it expected to be.