Quote:
The 254 255 255 255 is -2 the following 78 190 58 67 could be anything at all, i doubt it directly relates to the same thing.

the 254 255 255 255 is a 32bit signed integer using LSB to MSB (least to most significanat byte order "small ended")

If you break it down as follows
byteA = 254
byteB = 255
byteC = 255
byteD = 255

the calculation is...
var value = $calc((byteA) + (byteB * 256) + (byteC * 65536) + ($and(byteD,127) * 16777216) + (($and(byteD,128) / 128) * -2147483648))

ByteD has its highest bit removed and is multiplied by 16777216 ( 256*256*256)
Following that should the highest bit of ByteD be ON then -2147483648 is added to the total, this essentially is the value of the highest bit (128*256*256*256) but negitive, this allows for values from -2147483648 to 2147483647


You are the man !
Thx a lot, it works fine ^_^


j0k3r @ k4s.ch