We don't bite newbies here... much | |
PerlMonks |
Converting binary to double precisionby ahoriuch (Acolyte) |
on Feb 24, 2014 at 18:21 UTC ( [id://1076017]=perlquestion: print w/replies, xml ) | Need Help?? |
ahoriuch has asked for the wisdom of the Perl Monks concerning the following question: I'm having difficulties converting binary to double precision floating point. Using an on-line calculator, here is what the number should be: 5.71713084433028663131071134273E-5 Here's the number in hex:
Here is the number in "d":
Something is clearly wrong. Reading the unpack documentation, there is no option for "D". Is there another way I can convert this number?
Back to
Seekers of Perl Wisdom
|
|