‎2007 Nov 27 12:23 PM
hi,
there is a hexa string variable h and the value of h = 07FF.
how to convert this into bytes . can u explain procedure
‎2007 Nov 27 12:38 PM
hi,
07FF it's base is 16 ( hexadecimal), convert that base 10 i.e ) decimals
F = 15
15 X 1 = 15
15 X 16 = 240
7 X 256 =1792
if add all the three u will get 2047
convert that into base 2 which is nothing but bits
this u will achieve by dividing whole number by 2 by keeping remainder a side
so u will get 111111111110 is bit
regards,
pavan
‎2007 Nov 27 12:38 PM
hi,
07FF it's base is 16 ( hexadecimal), convert that base 10 i.e ) decimals
F = 15
15 X 1 = 15
15 X 16 = 240
7 X 256 =1792
if add all the three u will get 2047
convert that into base 2 which is nothing but bits
this u will achieve by dividing whole number by 2 by keeping remainder a side
so u will get 111111111110 is bit
regards,
pavan