SyntaxFix
Write A Post
Hire A Developer
Questions
byte b = (byte)0xC8; int v1 = b; // v1 is -56 (0xFFFFFFC8) int v2 = b & 0xFF // v2 is 200 (0x000000C8)
Most of the time v2 is the way you really need.