Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

$ZBITNOT (legacy function) (ObjectScript)

Bitstring function – NOT




This page describes the legacy function $ZBITNOT. It is described here for compatibility with legacy applications.

$ZBITNOT returns a permutation of bitstring with each of its bit positions inverted -- that is, 1s become 0s, and 0s become 1s.


If bitstring=[0,0,1,1,0], then the result of $ZBITNOT would be a bitstring with the value [1,1,0,0,1].

See Also