⭐
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";
Comment on
Re: How do I convert between decimal and binary?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom