Jul 28, 2006 #1 dipti1 Programmer Joined Jul 25, 2006 Messages 9 Location US Hi there, Is there any method of converting hex number into binary number? For example, if I have 000d, then I need to have, 0000000000000000000000000001101, that is 32 bit binary. Thank you so much!
Hi there, Is there any method of converting hex number into binary number? For example, if I have 000d, then I need to have, 0000000000000000000000000001101, that is 32 bit binary. Thank you so much!
Jul 28, 2006 #2 ishnid Programmer Joined Aug 29, 2003 Messages 1,422 Location IE Sure: Code: my $hex_string = '000D'; my $binary_string = sprintf "%032b", hex( $hex_string ); Upvote 0 Downvote
Jul 28, 2006 #3 TrojanWarBlade Programmer Joined Apr 13, 2005 Messages 1,783 Location GB Do you need it as a text form of the binary number or 2 bytes that represent the value (as in a zero byte and a carriage return)? Trojan. Upvote 0 Downvote
Do you need it as a text form of the binary number or 2 bytes that represent the value (as in a zero byte and a carriage return)? Trojan.