my ($binary) = sprintf ("%08b", $decimal); [download]
In reply to Re: decimal to binary by tadman in thread decimal to binary by tsvika_t