generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Converting binary to char?t

Previous Thread :: Next Thread 
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 09:48 AM
How would I do that?
I know that 1111 1111 in binary means 255 and that the char goes from 0 to 255.
So would I just have to do char(255) in c++?
Report Abuse
abx1 is not online. abx1
Joined: 13 Nov 2008
Total Posts: 4979
21 Jul 2012 09:50 AM
Well binary is read from right to left. For each 0, you do nothing, for each 1, you multiply it based off the number you should. Example:

10011000

128 64 32 16 8 4 2 1

You'd get 152.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
21 Jul 2012 09:52 AM
It goes from 1 to 255...
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
21 Jul 2012 09:54 AM
Wat did I just say?

Trololololol
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 09:54 AM
I knpw that, thanks, tough.
But I mean like converting the num to a char.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
21 Jul 2012 10:21 AM
Yeah, you just do char(unsigned int)
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 10:24 AM
k ill might nake binry decpder when ill come home
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
21 Jul 2012 10:25 AM
And where are you now :O?
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 10:26 AM
in car going to bday but were stuck in a traffic jam caused by an accident
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
21 Jul 2012 10:33 AM
Is that the one you were talking earlier?
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 10:35 AM
no
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
21 Jul 2012 10:45 AM
su come on steam
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
21 Jul 2012 10:49 AM
print( tonumber(10101010,2) )
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image