Change the decimal to binary
For example change the number 40 into binary number
Power of two closest to 40 is 32 plus 8,
32 = 2 ^ 5
8 = 2 ^ 3
So on the order of 5 and 2 1 rated
7 6 5 4 3 2 1 0 ~ 1 byte = 8 bits
-----
0 0 1 0 1 0 0 0
So the number 40 in binary is 0 0 1 0 1 0 0 0
Change the binary number to decimal
Change 0 0 1 0 1 0 0 0 to decimals
7 6 5 4 3 2 1 0
-----
0 0 1 0 1 0 0 0
In the fifth and third order valued at 1, so
(2 ^ 5) + (2 ^ 3) = 32 +8 = 40
OR Operation
If there is one that is worth 1, the result is a
Example: 40 OR 7
7 6 5 4 3 2 1 0
-----
0 0 1 0 1 0 0 0
0 0 0 0 0 1 1 1
-----
0 0 1 0 1 1 1 1 = 47
XOR Operation
If there is one that is worth 1, the result is one, if both are worth one or 0 then the result is 0
Example: 40 XOR 8
7 6 5 4 3 2 1 0
-----
1 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
-----
0 0 1 0 0 0 0 0 = 32
INTERNATIONAL Operations
If both a valuable one, the result is a
Example: 40 AND 8
7 6 5 4 3 2 1 0
-----
0 0 1 0 1 0 0 0
0 0 0 0 1 0 0 0
-----
0 0 0 0 1 0 0 0 = 8
NOT operation
Contrary to the previous value
Example: NOT 20
Seven six 5 4 3 2 1 0
-----
0 0 0 1 0 1 0 0
-----
1 1 1 0 1 0 1 1 = 235
No write dewe!
Comments always welcome ...
Possibly Related Posts:
Posted by Fuad under Pascal












February 12th, 2009 at 20:39
I go and have studied a binary operation at Skul


CPE lesson time fitting material fits Microprocessor logic IC (integrated circuit)
IC with logic AND, OR, XOR, and NOT, is in IC 7400 series
has long learned not to be forgotten .. uh, now remembered again
February 13th, 2009 at 02:13
whoa mensin language, forgiveness dah
February 13th, 2009 at 06:26
forgiveness at jeee ...
February 13th, 2009 at 13:22
was also studied binary class X
February 13th, 2009 at 14:04
jamanku first kok kyk g there so ya confused ..
February 13th, 2009 at 20:30
@ Cipzto
v
Well, I'm ga mudenk electro
@ Ras_arab
@ Bocahmiring
I've just been taught, what yo pascal kaitane same?
@ Ryan
emang binary class material x
@ Topanz
understand, a person jadul sampeyan
February 14th, 2009 at 16:20
wUw,.
at Skul kelaz koq gw ma x the material is the PHP Flash yah?
Fuad received course ga?
wanted list of q
where i d a computer directly to the Olympic training pascals, mumet puoL hadeh ... ..
February 16th, 2009 at 17:27
ngartos ora mas hikzzz
Doloe kabor sik, soale mathematics lesson
February 18th, 2009, at 16:28
I now class XI, hehe
February 21st, 2009 at 16:01
Permission quote ....
--------------------
Power of two closest to 40 is 32 plus 8,
32 = 2 ^ 5
8 = 2 ^ 3
So on the order of 5 and 2 1 rated
7 6 5 4 3 2 1 0 ~ 1 byte = 8 bits
-----
0 0 1 0 1 0 0 0
So the number 40 in binary is 0 0 1 0 1 0 0 0
-------------------
There is nothing wrong kayak mas ma heart above explanation ...
Basically ato gw ga ya Dunk?
February 21st, 2009 at 19:15
Haha ....
I Semudenk pokoke
where ya culprit?
February 25th, 2009 at 11:52
jancooook mbingungi
February 26th, 2009 at 15:51
Asem
In fact misuuuuuuuh.
May 21st, 2009 at 17:58
Thanks, yes,,, so I can mecahin who tebak2an 100 101 binary numbers ... the answer is 37,,, nice,,,
^, ^ V
September 10th, 2009 at 10:41
NICE!! alhamdulillah remember anymore ...
yes thanks kisanak!! hi!
March 24th, 2010 at 17:09
patent.
June 31st, 2010 at 09:54
lyuolyuolp; kj; liiioyoiopki