dastonecutters said:
Hey whats the easiest way to convert from binary to hex, binary to decimal, hex to decimal and the viceversas
without showing like all the working
If you don't want to do the conversions, this is a quick way:
Binary to Hexadecimal
Group the binary digits in groups of 4. Convert each group of 4 into its hex equivalent. Example:
take 10111111 and conver to hex
1) Take groups of 4: 1011 1111
2) Convert each group to hex equivalent:
1011 = 11 => B
1111 = 15 => F
thus, 10111111 => BF
If the binary number is not evenly divisible by 4, add extra zeros to pad the number, grouping them from right to left. Example:
11010 => what in hex?
1) Group in four:
1 1010 => 0001 1010 => 1A
Binary to Decimal
Quickest way I know for this is to add the different powers of two where there is a 1 in the binary representation.
Hex to Decimal
Do Hex => Binary => Decimal.
Hex => Binary is the reverse of the first conversion. For each digit in the hex representation, convert it to a 4 digital binary number.
If you can't figure a conversion out, you can always convert it to binary first and go from there.
Easiest way of course is if you're allowed, use a calculator.