Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Float/double to hex?

by edwyr (Sexton)
on Feb 19, 2013 at 22:03 UTC ( [id://1019670]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Float/double to hex?
in thread Float/double to hex?

Here is what I am looking for (running inside "perl -d -e 1"): x 2**16 65536 x unpack('h*', pack('i', 65535)) 'ffff0000' $x = 1 / 7 x $x 0.142857142857143 x unpack('h*', pack('f', $x)) '529421e3'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-19 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found