Calculators & Converters

    Convert Decimal 31 to Hex

    (31)10 = (?)16. Decimal 31 in hex conversion provides the detailed information on what is the hexadecimal equivalent of (31)10 and the step-by-step work for how to convert the decimal 31 to its equivalent hex (base-16) number manually.

    (31)10 in hex is equivalent to:
    3110 = 1F16

    Hence,
    (1F)16 is the hex equivalent of (31)10

    where,
    3110 is the given decimal number,
    10 in 3110 represents the base-10 or decimal number system,
    1F16 is the hex equivalent of the decimal 31,
    16 in 1F16 represents the base-16 or hexadecimal number system.

    Important Notes: (31)10 in Hex
    The below are some of the important notes to be remembered while converting the (base-10) decimal number 31 into a (base-16) hexadecimal equivalent.

    1. The initial or first remainder while performing 31 MOD-16 operation is a Least Significant Bit (LSB).
    2. The last remainder while performing 31 MOD-16 operation is a Most Significant Bit (MSB).
    3. Find the equivalent hex number for each remainders of 31 MOD-16 operation before arranging the numbers from MSB to LSB to find the hex equivalent.
    4. The remainders of 31 MOD-16 operation in hex equivalents should be written from MSB to LSB to form the hex equivalent for the given decimal number (31)10.

    For decimal values other than 31, use this below tool:

    How-to: What is (31)10 in hex?

    The below step-by-step solution shows how to convert (31)10 to its equivalent hexadecimal number. Represent each remainders of 31 MOD-16 operation in hex equivalents and arranging them from MSB to LSB produces the hex equivalent of 31.



    Solved Example:
    What is the hex equivalent of 31?

    step 1 Observe the input parameters, values and what to be found:

    Input values:
    Decimal Number = (31)10

    What to be found:
    What is the hexadecimal value of decimal number 31?
    (31)10 = (?)16

    step 2 Perform successive MOD-16 operation for decimal 31 until the quotient becomes 0, and mark the initial remainder as LSB and the final remainder as MSB as like the below:

    Successive MOD-16 Operation for 31
    31 MOD-16     31 / 16 = 1  Remainder is 15 → LSB
    1 MOD-16     1 / 16 = 0  Remainder is 1 → MSB

    step 3 Use the below table to find the equivalent hex representation for each remainders of successive 31 MOD-16 operation:
    Decimal: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
    Hex: 1 2 3 4 5 6 7 8 9 A B C D E F

    Decimal 15 in hex is F → LSB
    Decimal 1 in hex is 1 → MSB


    step 4 Write the remainders of 31 MOD-16 operation in hex equivalents from MSB to LSB produces the equivalent hex (base-16) number for decimal (base-10) 31:
    = 1F
    (31)10 = (1F)16

    Therefore,
    the hex equivalent of 31 is (1F)16.
    getcalc.com Calculators