Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Convert binary to decimal problem

by ikegami (Patriarch)
on Apr 06, 2008 at 16:41 UTC ( [id://678658]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    0x007102 = 100.000000
    0x00350C = 500.000000
    
  2. or download this
    0x300515 / 1600 =? 860.99  Yes!
    
  3. or download this
    my $raw = 0x300515;
    my $val = unpack('N', "\x00".pack('V', $raw))/1600
    
  4. or download this
    my $raw  = "\x30\x05\x15";
    my $val = unpack('V', "$raw\x00")/1600;
    

Log In?
Username:
Password:

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

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

    No recent polls found