Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

$ZBITCOUNT (legacy function)

Bitstring function – COUNT.




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

$ZBITCOUNT returns the number of ON bits (1' s) in bitstring.


If bitstring = [0,0,1,1,0], then the result of $ZBITCOUNT would be 2.

See Also