Study guides

☆☆

Q: What is the hexadecimal number f equal to octal?

Write your answer...

Submit

Still have questions?

Continue Learning about Math & Arithmetic

Octal: 0 1 2 3 4 5 6 7 Hexadecimal: 0 1 2 3 4 5 6 7 8 9 A B C D E F

9

It is called Hexadecimal

Hexadecimal uses the digits 0-9 and the letters a-f (in either upper case A-F, or lower case a-f). You appear to have used a letter O in upper case and lower case (o). Neither is a valid [standard] hexadecimal digit; so 3EO and 3Eo both mean the same in hexadecimal: a non-valid number. 3E0 and 3e0 are both valid hexadecimal numbers that mean the same (as the decimal number 992). In C, to signify a hexadecimal number it is preceded by 0X or 0x (that is zero-letter X), as in 0x3E0, etc.

Nothing. It just happens to be the largest digit and that is probably because we count in ten and that, in turn, is because humans have ten fingers (including thumbs). The divisibility rule for 9 etc would work with any base. The number 7 in octal, or F (=1510) in hexadecimal have the same properties.

Related questions

1111

import java.util.Scanner; public class NumberSystem { public void displayConversion() { Scanner input = new Scanner(System.in); System.out.printf("%-20s%-20s%-20s%-20s\n", "Decimal", "Binary", "Octal", "Hexadecimal"); for ( int i = 1; i <= 256; i++ ) { String binary = Integer.toBinaryString(i); String octal = Integer.toOctalString(i); String hexadecimal = Integer.toHexString(i); System.out.format("%-20d%-20s%-20s%-20s\n", i, binary, octal, hexadecimal); } } // returns a string representation of the decimal number in binary public String toBinaryString( int dec ) { String binary = " "; while (dec >= 1 ) { int value = dec % 2; binary = value + binary; dec /= 2; } return binary; } //returns a string representation of the number in octal public String toOctalString( int dec ) { String octal = " "; while ( dec >= 1 ) { int value = dec % 8; octal = value + octal; dec /= 8; } return octal; } public String toHexString( int dec ) { String hexadecimal = " "; while ( dec >= 1 ) { int value = dec % 16; switch (value) { case 10: hexadecimal = "A" + hexadecimal; break; case 11: hexadecimal = "B" + hexadecimal; break; case 12: hexadecimal = "C" + hexadecimal; break; case 13: hexadecimal = "D" + hexadecimal; break; case 14: hexadecimal = "E" + hexadecimal; break; case 15: hexadecimal = "F" + hexadecimal; break; default: hexadecimal = value + hexadecimal; break; } dec /= 16; } return hexadecimal; } public static void main( String args[]) { NumberSystem apps = new NumberSystem(); apps.displayConversion(); } }

import java.util.Scanner; public class NumberSystem { public void displayConversion() { Scanner input = new Scanner(System.in); System.out.printf("%-20s%-20s%-20s%-20s\n", "Decimal", "Binary", "Octal", "Hexadecimal"); for ( int i = 1; i <= 256; i++ ) { String binary = Integer.toBinaryString(i); String octal = Integer.toOctalString(i); String hexadecimal = Integer.toHexString(i); System.out.format("%-20d%-20s%-20s%-20s\n", i, binary, octal, hexadecimal); } } // returns a string representation of the decimal number in binary public String toBinaryString( int dec ) { String binary = " "; while (dec >= 1 ) { int value = dec % 2; binary = value + binary; dec /= 2; } return binary; } //returns a string representation of the number in octal public String toOctalString( int dec ) { String octal = " "; while ( dec >= 1 ) { int value = dec % 8; octal = value + octal; dec /= 8; } return octal; } public String toHexString( int dec ) { String hexadecimal = " "; while ( dec >= 1 ) { int value = dec % 16; switch (value) { case 10: hexadecimal = "A" + hexadecimal; break; case 11: hexadecimal = "B" + hexadecimal; break; case 12: hexadecimal = "C" + hexadecimal; break; case 13: hexadecimal = "D" + hexadecimal; break; case 14: hexadecimal = "E" + hexadecimal; break; case 15: hexadecimal = "F" + hexadecimal; break; default: hexadecimal = value + hexadecimal; break; } dec /= 16; } return hexadecimal; } public static void main( String args[]) { NumberSystem apps = new NumberSystem(); apps.displayConversion(); } }

Octal: 0 1 2 3 4 5 6 7 Hexadecimal: 0 1 2 3 4 5 6 7 8 9 A B C D E F

15 base 10 equals F base 16

Base 8 is known as octal and base 16 is hexadecimal.. In octal, 0 to 7 are used, so if we counted to 20, the progression would be as follows: 1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,20,21,22,23,24 In hexadecimal, the numbers 0-9 are used and the letters A-F are used. Counting to 20 would be as follows: 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10,11,12,13,14

Depends on the encoding. It is probably 0xF (15), but it could be -1 (if 4 bits in 2's complement), or any other value if a non-standard encoding. the coding can be octal or hexadecimal the value in decimal does not change in octal it is 17 in hexadecimal it is F in decimal is 15. ALL of these numbers are right it depends of what code the reference is to

A binary number system has two states '0' '1' for a long word in bits it can be as follows 101010101010101010101011 intimidating RIGHT? it can be represented in groups of 3 bits in octal 10/010/101/010/101/010/101/011= 22525253 digital or in group of 4 bits as 10/1010/1010/1010/1010/1010 = 2AAAAA 111 =7 octal 1111=f F in hexadecimal numbers 1000 =8 1010 =10 or A

Nothing. It just happens to be the largest digit and that is probably because we count in ten and that, in turn, is because humans have ten fingers (including thumbs). The divisibility rule for 9 etc would work with any base. The number 7 in octal, or F (=1510) in hexadecimal have the same properties.

Hexadecimal uses the digits 0-9 and the letters a-f (in either upper case A-F, or lower case a-f). You appear to have used a letter O in upper case and lower case (o). Neither is a valid [standard] hexadecimal digit; so 3EO and 3Eo both mean the same in hexadecimal: a non-valid number. 3E0 and 3e0 are both valid hexadecimal numbers that mean the same (as the decimal number 992). In C, to signify a hexadecimal number it is preceded by 0X or 0x (that is zero-letter X), as in 0x3E0, etc.

It is called Hexadecimal

9