Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Answer: How do I convert between decimal and binary?

by I0 (Priest)
on Jan 03, 2001 at 16:35 UTC ( #49491=categorized answer: print w/replies, xml ) Need Help??

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-10-20 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (263 votes). Check out past polls.

    Notices?