Advertisement

Unsetting the High Order bit of a char

Started by July 28, 2000 12:29 PM
11 comments, last by CoiN 24 years, 4 months ago
Well numbers are represented in what we call bases (sp?).

So base 10 is decimal, where there are 10 possible values for each digit within the number. Possible values include 0-9.

Base 2 is binary, where there are 2 possible values for each digit within the number. Possible values include 0 and 1.

Base 16 is Hexdecimal, where there are 16 possible values for each digit within the number. Possible values include 0-9 and A-F (A = 10, B=11, C=12,D=13,E=14,F=15)

So now
A binary Byte is 8 bits or 8 digits of 1''s and 0''s

like this 11111111

You''ll notice that somepeople when writing will show 1111 1111 as one byte, that''s because when you add it up 1111 = 15 or F the next set of 1111 will also be F but of course one digit higher so 11111111 == FF

Hmm... I''m not explaining it very well, I''ll see if I can find some links. But meanwhile use MS Calculater to convert Values! ;-)

Hope this helped you understand even a bit!
- Ben

P.S. I''ll be back if I can find some links...
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
http://www.stlcc.cc.mo.us/fv/webhelp/rgbhex.html - Hexdecimal Equivalent chart (Lists numbers 0-254 and shows there hexdecimal equivalents)


http://www.scism.sbu.ac.uk/jfl/otherbits/hexdemo2.html - Nice little tutorial, pretty tiny but may help you!

Check out these two, you may be able to understand from the second one, but I couldn''t find much so quickly, I''d suggest looking around a bit more yourself.
See ya,
Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
Advertisement
Thanks

This topic is closed to new replies.

Advertisement