Monday, May 24, 2010

What is the meaning of "%032b" in printf (OUT1 "%032b",$n ); statment in perl?

You will get 32 bit binary number of variable n printed in file handler OUT1

What is the meaning of "%032b" in printf (OUT1 "%032b",$n ); statment in perl?
Not quite. The '0' means that of the 32 bytes displayed, the leading bytes will be 0s instead of spaces.


No comments:

Post a Comment