Computer Science, asked by Vish8679, 1 year ago

Convert the following decimal numbers to binary number and hexadecimal number : (i) 125 (ii) 0.025

Answers

Answered by jitekumar4201
0

Decimal numbers to binary number and hexadecimal

  • 125  Decimal number
  • binary number,= 1111101
  • Hexadecimal=7D
  • 0.025 Decimal number
  • binary number=0.025=0.0000011001100110011binary number    Hexadecimal=0.06666666666666666666 Hexadecimal

Explanation:

  • Decimal numbers to binary number and hexadecimal
  • 125  Decimal number
  • binary number,= 1111101
  • Hexadecimal=7D  
  • 0.025 Decimal number
  • binary number=0.025=0.0000011001100110011binary number    Hexadecimal=0.06666666666666666666 Hexadecimal
  • Explanation:
  • Decimal to binary
  • Divide the number by 2.
  • Get the whole division  for the next repetition
  • Get the remainder is the binary digit.
  • Repeat the steps until when that is not equal to 0.
  • convert Decimal to Hexadecimal
  • Divide by 16.
  • Get the whole division  for the next repetition
  • Get the remainder for the hex digit.
  • Repeat the steps until when that  is not  equal to 0
Similar questions