tt_BITNOT function

dynamic tt_BITNOT(
  1. dynamic value
)

tt_BITNOT(a): bitwise NOT (uses the pure-arithmetic equivalent -x-1 instead of the ~ operator, to guard against possible bitwise-op discrepancies under Web compilation)

Implementation

dynamic tt_BITNOT(dynamic value) => -varToInt(value) - 1;