Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Converting Hex to Float (and vise versa)

by hawtin (Prior)
on Feb 06, 2004 at 19:10 UTC ( [id://327196]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $f2_5 = unpack("b64",pack("d",2.5));
    print $f2_5 . "\n";
    # Will return something like 00000000000000000000000000000000000000000
    +00000000010000000000010
    
  2. or download this
    {
      my($endian,$binary2double_fun);
    ...
        return 0.0;
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://327196]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-23 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found