Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Answer: How do I convert between decimal and binary?

( #49491=categorized answer: print w/ replies, xml ) Need Help??

Q&A > numbers > How do I convert between decimal and binary? contributed by I0

In v5.6.0 there's $bin = sprintf "%b",$dec; and $dec = oct "0b$bin";

Comment on Answer: How do I convert between decimal and binary?
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-08-31 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (366 votes), past polls