Jul 28, 2006 #1 dipti1 Programmer Jul 25, 2006 9 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 Aug 29, 2003 1,422 IE Sure: Code: my $hex_string = '000D'; my $binary_string = sprintf "%032b", hex( $hex_string ); Upvote 0 Downvote
Jul 28, 2006 #3 TrojanWarBlade Programmer Apr 13, 2005 1,783 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.