Re: How do I convert between decimal and binary?
by
I0
on
Jan 03, 2001 at 16:35 UTC
(
replies
)
http://www.perlmonks.org?node_id=49491
⭐
in reply to
How do I convert between decimal and binary?
In v5.6.0 there's
$bin = sprintf "%b",$dec;
and
$dec = oct "0b$bin";
In Section
Seekers of Perl Wisdom