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?

減算演算子 (–)

2 つの数値間の差を求めます。また、数値式の負の値を示します。

Synopsis

構文 1

result = number1-number2

構文 2

-number

引数

– 演算子の構文には以下の構成部分があります。

result 任意の数値変数
number 任意の数値式
number1 任意の数値式
number2 任意の数値式

概要

構文 1 では、– 演算子は算術減算演算子で、2 つの数値間の差を求めます。構文 2 では、– 演算子は単項否定演算子で、式の負の値を示します。

式が空の場合、0 として処理されます。

関連項目

FeedbackOpens in a new tab