Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

$ZBITAND (従来の関数)

ビット文字列関数 – AND

Synopsis

$ZBITAND(bitstring1,bitstring2)

概要

ここでは、従来の関数である $ZBITAND について説明します。ここでは、従来のアプリケーションとの互換性について説明します。

$ZBITAND は、(bitstring1 AND bitstring2) 演算によって形成されるビット文字列を返します。得られたビット文字列の長さは、指定された 2 つのビット文字列の短い方と同じ長さになります。その値は、両方のビット文字列で 1 の値を持つ位置はすべてが 1 になり、それ以外の位置はすべて 0 になります。

bitstring1 = [0,1,1,0] および bitstring2 = [0,1,0,0] の場合、$ZBITAND の結果は [0,1,0,0] になります。つまり、

Position 1: 0 and 0 = 0

Position 2: 1 and 1 = 1

Position 3: 1 and 0 = 0

Position 4: 0 and 0 = 0

関連項目

FeedbackOpens in a new tab