Who knows how binary is converted to 8 and hexadecimal?

Updated on amusement 2024-05-10
10 answers
  1. Anonymous users2024-02-10

    The easiest way is to use the calculator that comes with Windows, but you need to select the calculator's menu "View-> Scientific" first.

    Binary numbers are converted to decimal numbers.

    The weight of the 0th digit of a binary number is 2 to the power of 0, and the weight of the 1st digit is to the power of 2......So, there is a binary number: 0110 0100, which is converted to decimal as :

    Here's the vertical type: (In computers, the multiplication sign is represented by *) 0110 0100 to decimal.

    Digit 0 0 * 20 = 0

    1st digit 0 * 21 = 0

    2nd digit 1 * 22 = 4

    3rd digit 0 * 23 = 0

    Bit 4 0 * 24 = 0

    5th digit 1 * 25 = 32

    6th digit 1 * 26 = 64

    7th digit 0 * 27 = 0 +

    Calculated horizontally as:

    0 times how much is 0, so we can also skip the bit with a value of 0:

    Binary and hexadecimal numbers are converted to each other.

    Binary to hexadecimal is relatively simple, that is, it is converted to hexadecimal with 4 digits in a paragraph.

    For example, (the above line is a binary number, and the following is the corresponding hexadecimal):

    f d , a 5 , 9 b

    Conversely, when we see fd, how do we quickly convert it to a binary number?

    Convert f to 1111, then to: 1011.

    So, fd to binary number, is: 1111 1011 Since the conversion of hexadecimal to binary is quite straightforward, therefore, when we need to convert a decimal number to a binary number, we can also convert it to hexadecimal first, and then to binary.

    In fact, the conversion of binary and hexadecimal numbers to and from the computer is usually handled by the computer, and it doesn't matter if we don't know the conversion method.

  2. Anonymous users2024-02-09

    Open the counter in the attachment.

    Select --- scientific in viewing.

    Click Binary, enter the binary value.

    Click on the occimal system, and you can calculate the octal value.

  3. Anonymous users2024-02-08

    There is a simple algorithm for changing integers with different positive integer bases, that is, by using the target base for long division; The remainder gives the "number" starting from the lowest digit. For example, 1020304 go from decimal to decimal 7:

    1020304 / 7 = 145757 r 5145757 / 7 = 20822 r 320822 / 7 = 2974 r 4

    2974 / 7 = 424 r 6

    424 / 7 = 60 r 4

    60 / 7 = 8 r 4

    8 / 7 = 1 r 1

    1 7 = 0 r 1 = > 11446435 example, 10110111 from base 2 to base 5:

    10110111 101 = 100100 r 11 (3)100100 101 = 111 r 1 (1)111 101 = 1 r 10 (2)1 101 = 0 r 1 (1) => 1213 to convert a "decimal" decimal place, you can use repeated multiplication to make the integer part a "number". Unfortunately finite decimals are not necessarily converted to finite decimals, such as converting from hexadecimal to decimal:

  4. Anonymous users2024-02-07

    1. Octadecimal to binary.

    Method: Take a three-point method, that is, decompose a one-digit octal number into a three-digit binary number, and use the three-digit binary to add the weight to make up the octal number, and the decimal place remains the same.

    Example: To convert octal (327)o to binary, follow the steps below:

    4.Readings, readings from high to low, 011010111, i.e. (327)o=(11010111)b.

    2. Octadecimal to Hexadecimal.

    Method: Convert octal to binary and then convert binary to hexadecimal with the decimal place unchanged.

    Example: The steps to convert octal (327)o to hexadecimal are as follows:

    5. 1101 = d;

    6.Readings, readings from high to low, d7, i.e. (327)o=(d7)h.

  5. Anonymous users2024-02-06

    There are usually two ways to convert octal to hexadecimal algorithms:

    1. Convert octal to binary first, and then convert binary to hexadecimal.

    2. Convert octal to decimal first, and then convert decimal to hexadecimal.

    For example: octal: 1234567

    Converting to binary is the conversion of each number into three-digit binary: 001 010 011 100 101 110 111

    The numbers are then grouped into four digits starting from the right: 0 0101 0011 1001 0111 0111

    Then from the right, every four-digit group corresponds to a hexadecimal number: 053977<>

  6. Anonymous users2024-02-05

    Octadecimal to Hexadecimal:

    Octadecimal is converted to binary first, and then binary to hexadecimal.

    Example: (712)8 = 1110 0101 0)2 = 1ca)16Hexadecimal to Octadecimal:

    First, use the 1 to 4 method to convert hexadecimal to binary; Then use the 3-in-1 method to convert the binary system into 8 systems.

    Example: (1ca)16 = 111001010)2 = 712)8 Description: The high zero before the decimal point and the low zero after the decimal point can be removed.

  7. Anonymous users2024-02-04

    Here's how: convert octal to binary, then convert binary to hexadecimal, with the decimal rubbers unchanged.

    Example: To convert octal (327)o to hexadecimal circle as follows:

    5. 1101 = d;

    6.Reading, reading from high cellulite to low, d7, i.e. (327)o = (d7)h.

  8. Anonymous users2024-02-03

    Conversion can be done directly between any two decimal systems.

    The method of going directly from hexadecimal to octal:

    a(16)=12(8)

    b(16)=13(8)

    c(16)=14(8)

    d(16)=15(8)

    e(16)=16(8)

    f(16)=17(8)

    When converting, multiply the octal number represented by each hexadecimal number by the bit weight of the corresponding digit of the hexadecimal number, and then add up all the products, for example:

    91f64e(16)=?8)

    11*20 5+1*20 4+17*20 3+6*20 2+4*20 1+16*20 0= (To avoid confusion, all numbers in the equation are octal).

    Think of it as a space, which can't be aligned with a space).

  9. Anonymous users2024-02-02

    To convert a decimal integer to other decimal numbers, the method used is the same, which is to divide the number by the base number, take the remainder each time, until the quotient is equal to 0, and then read the remainder in reverse.

    Convert decimal integers to octal numbers using the reverse remainder method of dividing by 8:

    Reading the remainder of each time from the bottom up is the result of the conversion:

    Convert decimal 10 integers to hexadecimal numbers, using the reverse remainder method of dividing by 16:

    237/16=14...13 (denoted by d) 14 16=0....14 (denoted by e) reads the remainder of each time from the bottom up, which is the result of the conversion:

    237=(ed)16

  10. Anonymous users2024-02-01

    Just do the "base conversion".

    Plus or minus, write as is, don't change.

    For example: 65 (decimal).

    41 (hexadecimal).

    100 0001 (binary).

    101 (octal).

Related questions
8 answers2024-05-10

Convert decimal integers to binary numbers.

The divide by 2 reverse remainder method is adopted: >>>More

9 answers2024-05-10

2) Integer part: The 2 (x) that appears below indicates the meaning of 2 to the x power. >>>More

9 answers2024-05-10

#include

using namespace std; >>>More

8 answers2024-05-10

The representation of numbers in computers - binary.

1 Operations on binary numbers. >>>More

10 answers2024-05-10

If it's a method, I can give you a natural language description of how the decimal integer part n can be converted to binary as follows: >>>More