R
ron
Hi,
I am having some issues converting a binary string value
to a hex string value.
Example:
string mybinary = "0000111111111000";
string myhex = Convert.ToString(Convert.ToInt32(mybinary,
2), 16);
returns: "FF8"
should return: "0FF8"
I always need it to return a 16 bit value how do i keep
it from dropping the "0" value's in the hex string?
Thanks,
Ron
I am having some issues converting a binary string value
to a hex string value.
Example:
string mybinary = "0000111111111000";
string myhex = Convert.ToString(Convert.ToInt32(mybinary,
2), 16);
returns: "FF8"
should return: "0FF8"
I always need it to return a 16 bit value how do i keep
it from dropping the "0" value's in the hex string?
Thanks,
Ron