Tags | |
UUID | ab183f1b-1e05-11eb-8aae-bc764e203090 |
The Integer to Binary, Octal and Hex calculator accepts an integer value and returns the given integer converted to binary, octal and hex.
INSTRUCTIONS: Enter the following:
Binary, Octal and Hex Values: The calculator returns the binary, octal and hex string equal to the value of the input integer.
Binary numbers are comprised of zeros (0) and ones (1). The position of the zero or one indicate the exponent of two added to the value, making binary a base 2 number system
The first value in a binary string is multiplied by 20 (1)
The second value in a binary string is multiplied by 21 (2)
The third value in a binary string is multiplied by 22 (4)
The forth value in a binary string is multiplied by 23 (8), and so on.
In this way, the binary number of 1011 is:
1 • 20 + 1 • 21 + 0 • 22 + 1 • 23 = 11 in base 10 numbers which we commonly use.
Octal numbers are comprised of digits from zero to 7. The position of the digit indicates the exponent of eight added to the value, making Octal a base 8 number system
The first value in an octal number is multiplied by 80 (1)
The second value in an octal number is multiplied by 81 (8)
The third value in an octal number is multiplied by 82 (64)
The forth value in an octal number is multiplied by 83 (512), and so on.
In this way, the Octal number of 6017 is:
7• 80 + 1• 81 + 0 • 82 + 6 • 23 = 3087 in base 10 numbers which we commonly use.
Hexadecimal numbers are comprised of digits from zero to 9, and A, B, C, D, E, F. The position of the digit indicates the exponent of 16 added to the value, making Hex a base 16 number system
The first value in an hex number is multiplied by 160 (1)
The second value in an hex number is multiplied by 161 (16)
The third value in an hex number is multiplied by 162 (256)
The forth value in an hex number is multiplied by 163 (4,096), and so on. The letter A, B, C, D, E, F represent the base 10 values of 10, 11, 12, 13, 14 and 15 respectively
In this way, the Octal number of F0A7 is:
7• 160 + 10• 161 + 0 • 162 + 15 • 163 = 61607 in base 10 numbers which we commonly use.
No comments |