TOCMP2BIN: Decimal to two's complement binary conversion function

syntax: TOCMP2BIN(x) or
TOCMP2BIN(x, Bytes)

Returns the equivalent two's complement binary value from the given decimal value x. The output will automatically adjust to the minimum number of bytes necessary to express the resulting binary value in two's complement form. Optionally, the number of bytes for the result can be explicitly stated.