hi,
consider the following code:
string x="3F"; //0011 1111
string y="3F"; //0011 1111
string result="FFF";
where x is 6 bits and y is 6 bits but each one comes from different place and merging them into 3 hex-decimal digits is the required operation...how to do that in C#. note: x,y max value is 3F so no overflow will occur.
also i need the reverse operation:
string i="bc8"; //1011 1100 1000
string o1="2F";//10 1111
string o2="08";//00 1000
how to get o1 and o2 from i.
thanks,