Functions

bitMingle

Supported By

Syntax

[the] bitMingle of ( expression , expression )

bitMingle ( expression , expression )

Both expressions yield integers.

Description

The bitMingle function returns an integer produced by alternating the bits of the two's complement representations of the two given integers. For example, bitMingle(15,0) will produce binary 10101010 or decimal 170, while bitMingle(0,15) will produce binary 01010101 or decimal 85.

If both given values are positive, the result will be positive. If both given values are negative, the result will be negative. If one value is positive and the other value is negative, NaN is returned.

See Also

bitSelect, bitand, bitor, bitxor