how can i convert integers to binary or hexadecimal?
Answers
Answered by
0
for binary divide by 2
treat division in integers
from last to first
Divide the decimal number by 16. Treat the division as an integer division.Write down the remainder (in hexadecimal).Divide the result again by 16. Treat the division as an integer division.Repeat step 2 and 3 until result is 0.The hex value is the digit sequence of the remainders from the last to first.
treat division in integers
from last to first
Divide the decimal number by 16. Treat the division as an integer division.Write down the remainder (in hexadecimal).Divide the result again by 16. Treat the division as an integer division.Repeat step 2 and 3 until result is 0.The hex value is the digit sequence of the remainders from the last to first.
Similar questions