Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Binary number
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Hexadecimal=== {{Main|Hexadecimal}} {{Hexadecimal table}} Binary may be converted to and from hexadecimal more easily. This is because the [[radix]] of the hexadecimal system (16) is a power of the radix of the binary system (2). More specifically, 16 = 2<sup>4</sup>, so it takes four digits of binary to represent one digit of hexadecimal, as shown in the adjacent table. To convert a hexadecimal number into its binary equivalent, simply substitute the corresponding binary digits: :3A<sub>16</sub> = 0011 1010<sub>2</sub> :E7<sub>16</sub> = 1110 0111<sub>2</sub> To convert a binary number into its hexadecimal equivalent, divide it into groups of four bits. If the number of bits isn't a multiple of four, simply insert extra '''0''' bits at the left (called [[Padding (cryptography)#Bit padding|padding]]). For example: :1010010<sub>2</sub> = 0101 0010 grouped with padding = 52<sub>16</sub> :11011101<sub>2</sub> = 1101 1101 grouped = DD<sub>16</sub> To convert a hexadecimal number into its decimal equivalent, multiply the decimal equivalent of each hexadecimal digit by the corresponding power of 16 and add the resulting values: :C0E7<sub>16</sub> = (12 Γ 16<sup>3</sup>) + (0 Γ 16<sup>2</sup>) + (14 Γ 16<sup>1</sup>) + (7 Γ 16<sup>0</sup>) = (12 Γ 4096) + (0 Γ 256) + (14 Γ 16) + (7 Γ 1) = 49,383<sub>10</sub>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)