Switch from base 16 to base 2

16-base system (hexadecimal)

Hex or hexadecimal is a counting system based on 16 characters. This counting system is particularly interesting, because in the decimal system often, there are only 10 digits to represent numbers. Since the hex system has 16 digits, the 6 additional digits (in addition to the 10 digits in the decimal) are denoted by the first 6 letters of the English alphabet. Therefore, the hex digits include 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. This digital system is most commonly used in mathematics and information technology. In HTML programming, the color attribute can be represented by a 6-digit hexadecimal number: FFFFFF represents white, 000000 represents black, etc.

Switch from base 16 to base 2 Picture 1

Base 2 system (binary system)

The binary system uses two characters, 0 and 1, to represent a value.

Binary systems were applied in ancient Egypt, China and India for many different purposes. In the modern world, binary has become the language of electronic science and computers. This is the most efficient system for detecting electrical signals: Turn off ( 0 ) and turn on ( 1 ). It is also the basis for the binary code used to compose data on the computer. Even the digital text you are currently reading also includes binary numbers.

Reading some binary is easier than you think. This is a quantitative position-based system, so each digit in a binary number is raised to powers 2, starting from the rightmost position of 2 0 . In base 2 system, each binary digit refers to 1 bit.

Switch from base 16 to base 2 Picture 2

How to read binary numbers

To convert binary to decimal, some basic knowledge of how to read binary numbers can help. As mentioned above, in binary counting using quantitative positions, each bit (binary digit) is a power of 2. This means that all binary numbers can be expressed in terms of power of 2, with the rightmost position is 2 0 .

For example, binary numbers (1010) 2 can also be written as follows:

(1 * 2 3 ) + (0 * 2 2 ) + (1 * 2 1 ) + (0 * 2 0 )

Example of conversion from base 16 to base 2

  1. (1E3) 16 = (0001 1110 0011) 2
  2. (0A2B) 16 = (0000 1010 0010 1011) 2
  3. (7E0C) 16 = (0111 1110 0000 1100) 2

Conversion table from base 16 to base 2

Mechanical number 16Circular number 200000100012001030011401005010160110701118100091001A1010B1011C1100D1101E1110F1111
3.5 ★ | 2 Vote

May be interested

  • Function strtol () in CFunction strtol () in C
    the function long int strtol (const char * str, char ** endptr, int base) in standard c library converts part of the original string in str to a value of long int corresponding to the base base, but must are 2, 8, ..., 36, or special value 0.
  • Ways to Power Off Nintendo SwitchWays to Power Off Nintendo Switch
    despite the growth of the smartphone game market, the nintendo switch is still a handheld gaming device with a distinct and appreciated identity.
  • How to add a passcode to Nintendo SwitchHow to add a passcode to Nintendo Switch
    just because you share a console with someone doesn't mean they can see everything in your account. here's how to set up a password (or pin) on your nintendo switch or switch lite.
  • How to capture screen and record video on Nintendo Switch game consoleHow to capture screen and record video on Nintendo Switch game console
    nintendo switch has a dedicated button for screen capture and now it can even record videos in some games. these screenshots and videos will be saved to the internal storage of the microsd switch or memory card so that players can view and share on facebook or twitter right from the switch.
  • Top 5 Best Ethernet Switch 2021Top 5 Best Ethernet Switch 2021
    in today's article, tipsmake will take you to look at 5 most popular ethernet switches today. we'll talk about the pros and cons of each, and explain what they can do to improve your local area network.
  • Why should you buy the base iPhone 16 instead of the Pro model?Why should you buy the base iPhone 16 instead of the Pro model?
    the iphone 16 lineup is here, and of course most of the attention has been on the pro models. but the base iphone 16 and 16 plus come with a number of improvements that mean you're not missing out if you don't buy the pro.
  •  Top 5 keyboards with red switches worth buying Top 5 keyboards with red switches worth buying
     top 5 keyboards with red switch keyboards to buy in 2023, genuine supply at hacom. genuine cheap red switch mechanical keyboard, brown switch, blue switch.
  • Review of PoE 8 Port TP-Link Switch TL-SG1008P: Indispensable for home securityReview of PoE 8 Port TP-Link Switch TL-SG1008P: Indispensable for home security
    the metal body of the poe tl-sg1008p switch is high quality and gives it a solid appearance. just plug in the power adapter and devices with an ethernet cable, and turn on the power and you're ready to use.
  • How to update games on Nintendo SwitchHow to update games on Nintendo Switch
    last time, the nintendo switch games had updates and bug fixes. sometimes, those updates add huge features, like new characters or levels. here's how to ensure your game on the switch has been updated regularly.
  • How to turn an old router into a switchHow to turn an old router into a switch
    how to configure the router as a switch? most likely you will ask this question if you are planning to expand your home network, but only have an ethernet router, not a switch.