With the same formula as binary we can also do it for base 8
(octal) numbers.
Example:
- First of all 67/8 = 8, remainder 3
- Then 8/8 = 1, remainder 0,
- Last 1/8=0, remainder 1.
- Thus from the calculation results obtained 6710 = 1038
With the same formula as binary we can also do it for base 8
(octal) numbers.
Example:
Dengan rumus yang sama seperti biner kita bisa lakukan juga untuk bilangan berbasis 8 (oktal).
Contoh:
By using the calculation
formula for converting decimal numbers to other bases, we can do the following.
Example :
6710 = ……2
?
Suppose we are going to
convert 67 base ten (decimal) to base 2 (binary).
1.
First we divide 67 by 2, we get the
integer quotient is 33 with the remainder 1, or in other words 67 = 2*33 + 1
2.
Then we divide the integer quotient (33)
by 2 again, 33/2 = 16, the remainder is 1.
3.
Then we repeat again, 16/2 = 8, the
remainder is 0.
4.
Repeat these steps again until the integer
quotient equals 0. After that, write down the remainder of the quotient
starting from the bottom up.
Thus we will get that 6710 = 10000112.
In this post, I will discuss the calculation of K-Nearest Neighbor with Manhattan Distance using 5 criteria.
The classification that will be discussed is the Classification of Scholarship Recipients.
The data we will use is :
Information :
Calculation (formula to be used):
Then the calculation will be obtained as follows :
After that, do the ranking from the smallest to the largest value, the results obtained are as follows :
After getting the ranking, we can ensure that on behalf of See is eligible to receive a Scholarship or Not Eligible to receive a Scholarship.
Explanation :
So the final result See does not meet the requirements.
Notes :
Contoh :
6710 = ……2 ?