I need help converting data to hex

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
I'm trying to figure out what

0b 00 00 00 00 00 00 00 03 00 00 00

is in hex

I know that

0b 00 00 00 00 00 00 00 01 00 00 00

is 0xff

Any help is much appreciated. :)
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
how the hell is 0b 00 00 00 00 00 00 00 01 00 00 00

0xff in hex? looks like 0x40 to me
 

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
Originally posted by: dighn
how the hell is 0b 00 00 00 00 00 00 00 01 00 00 00

0xff in hex? looks like 0x40 to me

I have no idea :confused:

Hoping you can help me :p
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
ok here's how:

start menu->run->calc.exe

scientific mode enable
switch to binary
enter the binary number
then switch to hex

voila
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: LeetViet
I'm trying to figure out what

0b 00 00 00 00 00 00 00 03 00 00 00

is in hex

I know that

0b 00 00 00 00 00 00 00 01 00 00 00

is 0xff

Any help is much appreciated. :)

Huh? That IS hex. What other number system would have 0b?
 

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
Originally posted by: dighn
ok here's how:

start menu->run->calc.exe

scientific mode enable
switch to binary
enter the binary number
then switch to hex

voila

I can't enter the letter B in Binary...
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
Originally posted by: LeetViet
Originally posted by: dighn
ok here's how:

start menu->run->calc.exe

scientific mode enable
switch to binary
enter the binary number
then switch to hex

voila

I can't enter the letter B in Binary...

0b simply means the number after is binary
0x means the number after is hex

so don't enter those parts
 

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
Originally posted by: BingBongWongFooey
Originally posted by: LeetViet
I'm trying to figure out what

0b 00 00 00 00 00 00 00 03 00 00 00

is in hex

I know that

0b 00 00 00 00 00 00 00 01 00 00 00

is 0xff

Any help is much appreciated. :)

Huh? That IS hex. What other number system would have 0b?


Which system uses the 0x_ _ _ _ _ _ ... ?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: dighn
Originally posted by: LeetViet
Originally posted by: dighn
ok here's how:

start menu->run->calc.exe

scientific mode enable
switch to binary
enter the binary number
then switch to hex

voila

I can't enter the letter B in Binary...

0b simply means the number after is binary
0x means the number after is hex

so don't enter those parts

Binary has a 3?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: LeetViet
Originally posted by: BingBongWongFooey
Originally posted by: LeetViet
I'm trying to figure out what

0b 00 00 00 00 00 00 00 03 00 00 00

is in hex

I know that

0b 00 00 00 00 00 00 00 01 00 00 00

is 0xff

Any help is much appreciated. :)

Huh? That IS hex. What other number system would have 0b?


Which system uses the 0x_ _ _ _ _ _ ... ?

hex.
 

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
Originally posted by: BingBongWongFooey
Originally posted by: LeetViet
Originally posted by: BingBongWongFooey
Originally posted by: LeetViet
I'm trying to figure out what

0b 00 00 00 00 00 00 00 03 00 00 00

is in hex

I know that

0b 00 00 00 00 00 00 00 01 00 00 00

is 0xff

Any help is much appreciated. :)

Huh? That IS hex. What other number system would have 0b?


Which system uses the 0x_ _ _ _ _ _ ... ?

hex.

And how would I go about converting 0b 00 00 00 00 00 00 00 03 00 00 00 to 0x _ _ _ _ .... ?

Sorry I'm a total noob.
 

tikwanleap

Senior member
Oct 9, 1999
922
0
0
dang this is sooo easy guys.

Here's a table of translation from bin to hex

first column is binary : second column is hex
0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
1001 = 9
1010 = A or "10"
1011 = B or "11"
1100 = C or "12"
1101 = D or "13"
1110 = E or "14"
1111 = F or "15"

So you take every four bits and it turns into one hex digit.

so like:

0b 00 00 00 00 00 00 00 01 00 00 00
=
0b 00 0000 0000 0000 0100 0000
=
0x--0-----0-----0-----0-----4-----0 (the very first part of the binary data has only 2bits "00" that still = 0 in hex)
=
0x000040

So let's do the one you were asking about...

0b 00 00 00 00 00 00 00 03 00 00 00
=
0b 00 0000 0000 0000 0300 0000
=
0x--0-----0-----0-----0--??!?! <--- what the hell? You can't have a 3 in binary!!!! :confused:

I give up. :/
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: LeetViet

And how would I go about converting 0b 00 00 00 00 00 00 00 03 00 00 00 to 0x _ _ _ _ .... ?

Sorry I'm a total noob.

Write an 0x in front of it? I dunno. I don't know where you're getting this data from or what, but all I know is that hex is the only number system I know of that has 3's and b's; binary only has 0 and 1, and decimal and octal don't have letters.