There are two major methods of sampling, namely; probability and non-probability sampling methods.
To multiply two binary numbers, follow the following steps:
Write down the numbers in such a way that the rightmost bit of the two numbers is lined up vertically just like the way you do in decimal.
Starting with the rightmost bit of the second number, take the first number and multiply it by each bit of the second number one at a time.
After each multiplication, shift the result one place to the left.
Write the results below the previous, starting with the rightmost multiplication.
Add all the results together to get the final product.
You should also note this
In binary, the product of 0 and 0 is 0.
In binary, the product of 1 and 0 is 0.
In binary, the product of 1 and 1 is 1.
The product of 1 and 0 is 1 in binary
Since you would add after multiplying, you should note this about base 2 addition:
1+0=1
1+1=10
0+1=1
0+0=0
1+1+1=11
1+0+1=11
1+1+0=10
To add binary numbers, you should note the following:
Always start at the rightmost column when adding binary numbers.
When adding in binary, you should note the following also:
1+0=1
1+1=10
0+1=1
0+0=0
10+1=11
The result of adding two binary numbers should be the binary equivalent of what you would obtain by converting all the binary numbers to decimal numbers and adding them in decimal form.
To convert a digit from any base to base 10, the steps are as follows:
Write out the number you want to convert to base 10.
Identify the base of the number you want to convert to base 10. For example, the number might be in base 2, or base 8.
Multiply each digit by the base raised to a power equal to its position in the number, starting from 0 for the rightmost digit and starting with the rightmost digit. For example, the rightmost digit will be raised to power 0, while the second rightmost digit will be raised to power 1.
Add up the product derived from step 3. The sum will be the decimal equivalent of the original digit.
To convert a number from Base 10 to base 8, you must follow these steps:
Divide the number by 8 and take note of the remainder.
Divide the resulting quotient by 8 and also take note of the remainder.
Repeat steps 1 and 2 until the quotient becomes zero.
The number in base 8 will be the remainder from down to up.
Number Base Conversion is the process of converting a number from one base to another.
In this post, we will be converting from base 2 to base 10, and vice versa.
Base 2 has only two digits, which are 0 and 1.
On the other hand, Base 10 has 10 digits, namely; 0,1,2,3,4,5,6,7,8,9.