not

Synopsis

$ not(n)

Calculate the logical not value of the argument.

Parameters

n - the value to apply this function to.

Returns

A long scalar by default, unless the arg is an integer scalar then the return value is an integer scalar.

Side Effects / Notes

Examples

$flags = 0; $flags = 2 | 64 | 128; # set some flags println("1: " . formatNumber($flags, 2)); $flags = $flags & not(64); # unflag the 64 bit println("2: " . formatNumber($flags, 2));

1: 11000010 2: 10000010