onescomplement(
onescomplement(
NUMBER
)

The onescomplement( function returns the one’s complement of a 64 bit number (all bits are reversed)

Parameters

This function has one parameter:

number – an integer value.

Description

This function returns the one’s complement of a 64 bit number (all bits are reversed)

    onescomplement(bit(15)) ☞ -16385

See Also

- bit( -- converts a bit number (1 to 64) into a number (1, 2, 4, 8, 16, etc.)
- getbit( -- returns the value of a bit within a number.
- setbit( -- sets or clears one bit within a number, without disturbing any of the other bits.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0