Converting between Binary, Hexadecimal, and Decimal values