Cool trick. Hadn't seen that one before. As I look at it, it actually does the same thing as the method I posted, but skips the binary conversion step (splitting the one octet into two quartets is equivalent to dividing by 16).

---JRE---
 
you can also go from decimal to hex by dividing by 16 example given 235
 
235 / 16 = 14 with a remainder of 11
14 in hex is E
11 in hex is B
answer EB
 
Another example 149
168/16 = 10 with a remainder of 8
10 in hex is A
8 in hex is 8
answer A8 hex
 
To convert hex to decimal is just as easy take the left most hex digit and multiply it by 16 then add the right digit
EB in hex
E * 16
E=14
14*16 = 224
B=11
224 + 11 = 235
 

--
 
André Paree-Huff
A+, ASE, CCDA, CCNP
MCSE+I, NET+, I-NET+
[EMAIL PROTECTED]
[EMAIL PROTECTED]
AOL AIM: pareehuff
> No. But if you can go from decimal to binary, the step to hex is
> rudimentary. Just divide each octet into two quartets and convert. For
> example:
>
> 235 => 11101011 => 1110_1011 => 14_11 => E_B => EB
>
>
> ---JRE---
>
> ""Travis Parrill"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Does anyone know if there is a decimal to Hex conversion table on the
> BCMSN
> > test for the multicast IP to MAC address Translation.
> >
> > TP
 

Reply via email to