E90Post
 


The Tire Rack
 
BMW 3-Series (E90 E92) Forum > BIMMERPOST Universal Forums > Off-Topic Discussions Board > covert to binary?



Reply
 
Thread Tools Search this Thread
      02-23-2009, 12:52 AM   #1
Vyruz Reaper
Reverse Homer
Vyruz Reaper's Avatar
United_States
151
Rep
1,064
Posts

Drives: ///M240i
Join Date: May 2007
Location: Sunny SoCal

iTrader: (6)

covert to binary?

how do u convert this to binary?

0X2142
Appreciate 0
      02-23-2009, 12:56 AM   #2
jhv
Lieutenant General
jhv's Avatar
1695
Rep
17,304
Posts

Drives: G80 M3
Join Date: Apr 2007
Location: Los Angeles

iTrader: (1)

001100000101100000110010001100010011010000110010
Appreciate 0
      02-23-2009, 12:58 AM   #3
Vyruz Reaper
Reverse Homer
Vyruz Reaper's Avatar
United_States
151
Rep
1,064
Posts

Drives: ///M240i
Join Date: May 2007
Location: Sunny SoCal

iTrader: (6)

hmmmm. i got 0010010101001010
Appreciate 0
      02-23-2009, 01:52 AM   #4
pmeloche
Lieutenant Colonel
pmeloche's Avatar
Canada
24
Rep
1,604
Posts

Drives: 2013 F25 X3 xDrive35i
Join Date: Feb 2008
Location: Montréal, Canada

iTrader: (0)

0x2142 = 0010 0001 0100 0010
__________________

Patrice
2013 F25 X3 xDrive35i Vermillion Red
Appreciate 0
      02-23-2009, 01:54 AM   #5
pmeloche
Lieutenant Colonel
pmeloche's Avatar
Canada
24
Rep
1,604
Posts

Drives: 2013 F25 X3 xDrive35i
Join Date: Feb 2008
Location: Montréal, Canada

iTrader: (0)

Quote:
Originally Posted by jh valley View Post
001100000101100000110010001100010011010000110010
Ha ha ha, 48 bits to represent a 16 bit value.
__________________

Patrice
2013 F25 X3 xDrive35i Vermillion Red
Appreciate 0
      02-23-2009, 01:55 AM   #6
pmeloche
Lieutenant Colonel
pmeloche's Avatar
Canada
24
Rep
1,604
Posts

Drives: 2013 F25 X3 xDrive35i
Join Date: Feb 2008
Location: Montréal, Canada

iTrader: (0)

Quote:
Originally Posted by Vyruz Reaper View Post
hmmmm. i got 0010010101001010
0010 0101 0100 1010 = 0x254A. FAIL.
__________________

Patrice
2013 F25 X3 xDrive35i Vermillion Red
Appreciate 0
      02-23-2009, 02:03 AM   #7
its ray den
Second Lieutenant
4
Rep
205
Posts

Drives: 2004 Mazda6s
Join Date: Aug 2007
Location: NY

iTrader: (0)

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 08:17 AM..
Appreciate 0
      02-23-2009, 02:05 AM   #8
methodtim
Brigadier General
methodtim's Avatar
Liechtenstein
374
Rep
3,883
Posts

Drives: Audi RS Q8
Join Date: Mar 2007
Location: Darkness there, and nothing more

iTrader: (0)

Garage List
http://www.google.com/search?rlz=1C1...2142+in+binary
__________________
Appreciate 0
      02-23-2009, 02:06 AM   #9
Vyruz Reaper
Reverse Homer
Vyruz Reaper's Avatar
United_States
151
Rep
1,064
Posts

Drives: ///M240i
Join Date: May 2007
Location: Sunny SoCal

iTrader: (6)

Quote:
Originally Posted by pmeloche View Post
0x2142 = 0010 0001 0100 0010
u r right... i failed

but im getting this shit done!
Appreciate 0
      02-23-2009, 02:28 AM   #10
jhv
Lieutenant General
jhv's Avatar
1695
Rep
17,304
Posts

Drives: G80 M3
Join Date: Apr 2007
Location: Los Angeles

iTrader: (1)

Quote:
Originally Posted by pmeloche View Post
Ha ha ha, 48 bits to represent a 16 bit value.
Ha ha ha, I just hit 0 and 1 at random, tool.
Appreciate 0
      02-25-2009, 01:40 AM   #11
pmeloche
Lieutenant Colonel
pmeloche's Avatar
Canada
24
Rep
1,604
Posts

Drives: 2013 F25 X3 xDrive35i
Join Date: Feb 2008
Location: Montréal, Canada

iTrader: (0)

Quote:
Originally Posted by its ray den View Post
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
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.
__________________

Patrice
2013 F25 X3 xDrive35i Vermillion Red
Appreciate 0
      02-25-2009, 01:42 AM   #12
pmeloche
Lieutenant Colonel
pmeloche's Avatar
Canada
24
Rep
1,604
Posts

Drives: 2013 F25 X3 xDrive35i
Join Date: Feb 2008
Location: Montréal, Canada

iTrader: (0)

Quote:
Originally Posted by jh valley View Post
Ha ha ha, I just hit 0 and 1 at random, tool.
Yeah, I figured you would reply a silly thing to an honest question.
__________________

Patrice
2013 F25 X3 xDrive35i Vermillion Red
Appreciate 0
      02-25-2009, 02:03 AM   #13
Blake
Banned
No_Country
752
Rep
4,649
Posts

Drives: Chevy Aveo
Join Date: May 2008
Location: Parent's Basement

iTrader: (7)

Quote:
Originally Posted by pmeloche View Post
Yeah, I figured you would reply a silly thing to an honest question.
Appreciate 0
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 06:03 AM.




e90post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST