|
|
|
|
|
|
BMW Garage | BMW Meets | Register | Search | Today's Posts | Mark Forums Read |
|
BMW 3-Series (E90 E92) Forum
>
covert to binary?
|
|
02-23-2009, 02:54 AM | #5 |
Lieutenant Colonel
24
Rep 1,604
Posts |
Ha ha ha, 48 bits to represent a 16 bit value.
|
Appreciate
0
|
02-23-2009, 02:55 AM | #6 |
Lieutenant Colonel
24
Rep 1,604
Posts |
0010 0101 0100 1010 = 0x254A. FAIL.
|
Appreciate
0
|
02-23-2009, 03:03 AM | #7 |
Second Lieutenant
4
Rep 205
Posts |
0X2142 = 0000 0010 0000 0001 0000 0100 0000 0010
the '0x' denotes a number value in hexadecimal. a hex digit has 8 bits. damn.. i messed up Last edited by its ray den; 02-23-2009 at 09:17 AM.. |
Appreciate
0
|
02-23-2009, 03:05 AM | #8 |
Brigadier General
384
Rep 3,885
Posts
Drives: Audi RS Q8
Join Date: Mar 2007
Location: Darkness there, and nothing more
|
|
Appreciate
0
|
02-25-2009, 02:40 AM | #11 |
Lieutenant Colonel
24
Rep 1,604
Posts |
A hex digits has 4 bits. The 0x is just a notation to denote an hexadecimal value so 0x2142 is a 16-bit value. An ASCII character has eight bits and if you see 0X2142 as a character string then it becomes 0x305832313432. It think the OP meant 0x2142 to be a 16-bit hexadecimal value.
|
Appreciate
0
|
02-25-2009, 02:42 AM | #12 |
Lieutenant Colonel
24
Rep 1,604
Posts |
Yeah, I figured you would reply a silly thing to an honest question.
|
Appreciate
0
|
Bookmarks |
Thread Tools | Search this Thread |
|
|