How can I convert a binary number to hexadecimal?
October 7, 1999
A. There are some operations in Windows NT where you need to give avalue as hexadecimal rather than binary or decimal, for example setting whichdrives should be excluded from a users view (see 'Q. How can I hide drive x from users?')
The easiest way to convert is to use the Calculator application in Scientificmode:
Start Calculator (calc.exe)
From the view menu select 'Scientific'
Select 'Bin' and set the data type to 'Dword' (Dword is 4 bytes (32 bits), the biggest possible in calc)
Enter you binary string
Select 'Hex' and your binary number is converted to Hex
Click here to view image
Hexadecimal is base 16 and each digit can therefore be between 0 and 15 (0-9,A-F). Binary is base 2 and each digit can therefore be 0 or 1.
About the Author
You May Also Like