Hexadecimal to binary conversion

I have a question:

1A45 (hexadecimal) GB = _____ (binary) bytes

Tell us how to fill out the answer!

Performing calculations in the usual way takes a lot of time, and I cannot get an answer ...

+2
hex
source share
3 answers

Hex-Bin conversion is easy because each hexadecimal digit is four bits long. Remember this table, and you can easily do the conversion in your head:

0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 

Just replace each hexadecimal digit with the corresponding four bits, and you will get the first part of your answer.

Now for GB: K means 10 binary zeros, M means 20 binary zeros, G means 30 binary zeros. Add zeros to the end of your HEX-convert-to-BIN number to get the final answer.

+4
source share

1A45 can be expressed in two 8-bit bytes as 00011010 01000101, the decimal value is 6725

+1
source share

Well, there are two problems here:

  • Convert 1A45 from hexadecimal to binary (do you really want a binary?)

  • Multiply it by 10 ^ 9 or 2 ^ 30, depending on which definition of GB you are using.

GoldenNewby already answered the first, the second will depend on your needs.

+1
source share

All Articles