Why not type cast it:
A byte is just a number from -127 to 127 (signed) or 0 to 255 (unsigned). It will never print out binary digits.Code:byte converted; char original; converted = (byte) original;
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |