Contact me:
Home
My Blog
Computer Engineering
Binary Mathematics
>
Rules
Conversions
Logic Gates
>
Adders
Buffer
Parallel Port
>
Parallel Port Programming
Parallel Port Interfacing
Miscellaneous
Downloads
Gallery
Contact me
Binary Rules
Addition
:
0 + 0 = 0
0 + 1 = 0
1 + 0 = 1
1 + 1 = 10 (carry 1 to the next more significant bit)
Subtraction
:
0 - 0 = 0
0 - 1 = -1 (borrow 1 from the next more significant bit)
1 - 0 = 1
1 - 1 = 0
Multiplication
:
0 x 0 = 0
0 x 1 = 0
1 x 0 = 0
1 x 1 = 1 (no carry or borrow bits)
Division
:
0 ÷ 0 = NaN
0 ÷ 1 = 0
1 ÷ 0 = Infinity
1 ÷ 1 = 1