Computer Science, asked by joydeepdas1980, 1 day ago

binary to hexadecimal formula ​

Answers

Answered by akshitathenmozhi
3

Answer:

Summary

The Excel BIN2HEX function converts a binary number to its hexadecimal equivalent.

Purpose

Converts a binary number to hexadecimal

Return value

Hexadecimal number

Syntax

=BIN2HEX (number, [places])

Arguments

number - The binary number you want to convert to hexadecimal.

places - [optional] If omitted uses the least number of characters required to represent the number, otherwise pads the result with zeros up to the specified number of places.

Version

Excel 2003

Usage notes

The input number must contain only zeros and ones and be less than 10 characters long, otherwise the function returns the #NUM! error value.

The first bit of the binary number indicates whether the number is positive or negative. The other nine digits represent the size of the number, the max of which is 511 (2^9 - 1). A negative binary number is expected to use the two's complement notation.

Related functions

Excel DECIMAL function

Excel DECIMAL Function

The Excel DECIMAL function converts a number in a given base into its decimal number equivalent. For example, the DECIMAL function can convert the binary number 1101 into the decimal number 13.

hope this answer helps you

Answered by harshitamunot74
0
Example

Convert binary number 1101010 into hexadecimal number. First convert this into decimal number: = (1101010)2
=1x26+1x25+0x24+1x23+0x22+1x21+0x20
= 64+32+0+8+0+2+0 = (106)10

Then, convert it into hexadecimal number = (106)10 = 6x161+10x160 = (6A)16 which is answer.
Similar questions