Roger, your script returned 631 for a hex input of 0050BA8A3DA6. The real answer is 346727005606.

Kix cannot count above 0x7fffffff (which is 31 bits) or 2 147 483 647, so it cannot convert a 48bit MAC to decimal.

Even if you chop the MAC into two 24 bit pieces, KiX cannot multiply the top 24 bits by 16,777,216:

Top 24 bits:
val("&"+substr(@address, 1, 6))

bottom 24 bits:
val("&"+substr(@address, 7, 6))

decimal value=(top 24 bits*16777216)+bottom 24 bits

I too am curious as to why you want to convert the MAC to decimal...


cj

------------------
For more scripts goto my website and click the hammer and spanner icon.

chrismat@ozemail.com.au