Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Displaying a number in binary using perl

$
0
0
printf FH2" 3'b%b : begin\n",$i;
where i is an integer in the loop
is displaying
3'b1 : begin

expected output was
3'b001 : begin

Viewing all articles
Browse latest Browse all 16232

Trending Articles