Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 perusing the Monastery: (9)
As of 2014-10-01 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (9 votes), past polls