|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Converting Hex to Float (and vise versa)by jmcnamara (Monsignor) |
| on Feb 06, 2004 at 16:51 UTC ( [id://327230]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Here is one way of doing it:
In this case the first of these looks like the right value. It is rare that you will encounter a platform where one of these doesn't work. If you do then I have some Perl code for packing and unpacking IEEE 754 floats and doubles independently of the architecture.
--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||