Computer Science, asked by ujjwalmehta8126, 4 months ago

How will you find whether a number is represented in Decimal /Binary /Octal or Hexadecimal system

Answers

Answered by crumble
7

Explanation:

if a number has base as 10 and is represented by using any 10 digits ( 0-9 ) it is a decimal. eg : (156.5) base 10

if a number has base as 2 and is represented by using any 2 digits ( 0-1 ) it is binary. eg : (10011100.1) base 2

if a number has base as 8 and is represented by using any 8 digits ( 0-7 ) it is octal. eg : (234) base 8

if a number has base as 16 and is represented by using any 10 digits ( 0-9 ) and 6 alphabets ( A,B,C,D,E,F ) it is hexadecimal. eg : (9C) base 16

Answered by aayujain71009
1

Answer:

if a number has a base 10 and is represented using any 10 digits from 0-9, then it is a decimal number. eg : (497) base 10

if a number has a base 2 and is represented using any 2 digits from 0-1, then it is a binary number . eg : (10010101) base 2

if a number has a base 8 and is represented using any 8 digits from 0-7, then it is an octal number. eg : (635) base 8

if a number has a base 16 and is represented using any 10 digits from 0-9,and 6 alphabets from A-F, then it is a hexadecimal number. eg : (E3) base 16

Similar questions