Changes

Jump to navigation Jump to search
4 bytes added ,  17:26, August 13, 2020
m
Edit headers
Line 59: Line 59:  
   1110111000
 
   1110111000
   −
==Subtraction==
+
===Subtraction===
 
Subtraction in binary can be carried out similar to decimal notation, however, there is a more efficient way, which is usually used in computers. Negative numbers a written in "Two's complement notation". In this notation, You "flip" the digits in the binary number and add one. For example,
 
Subtraction in binary can be carried out similar to decimal notation, however, there is a more efficient way, which is usually used in computers. Negative numbers a written in "Two's complement notation". In this notation, You "flip" the digits in the binary number and add one. For example,
   Line 74: Line 74:  
Note that this method requires the amount of digits to be fixed.
 
Note that this method requires the amount of digits to be fixed.
   −
==Multiplication==
+
===Multiplication===
 
Multiplication in binary is far more simple than multiplication in decimal. To multiply two binary numbers X * Y, use the following algorithm:
 
Multiplication in binary is far more simple than multiplication in decimal. To multiply two binary numbers X * Y, use the following algorithm:
 
#set a to 0
 
#set a to 0
6

edits

Navigation menu