how do i convert a decimal (integer) to a hexadecimal? To an octal? to a binary?
unsigned integer
best explains by example 42 decimasl = 42 / 8 = 5 renainder 2 = 52 octal 42 decimal = 42/16 = 2A hexadecimal the digits i hexadecimal range from 0 -9 then A,B,C,D E F
how do I convert 328789 to binary?
42 decimal to binary 32 16 8 4 2 1 1 0 1 0 1 0
in binary there is only 2 digits 0 and 1 so 10 = 2^1 + 0 = 2 decimal 11 = 2^1 + 1 = 3 decimal 111 = 2^2 + 2^1 + 2^0 = 4 + 2 +1 = 7 decimal
to get 328789 - extend radar's series to left until you have values high enough.
328789 is a long number. 0b1010000010001010101
it's only 19 bits... am I right?
yes - i just wolframalpha lol - eaiest way
I should learn how to do it by hand/head, since I will be using bits and octets a lot.
yea
A hint if the number is odd the LSB is a 1 lol
yes.
Join our real-time social learning platform and learn together with your friends!