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?

$ZBITCOUNT (legacy function) (ObjectScript)

Bitstring function – COUNT.

Synopsis

$ZBITCOUNT(bitstring)

Description

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.

Example

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

See Also

Feedback