Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Sgn

  • Last UpdatedOct 08, 2024
  • 1 minute read

値(正、ゼロ、または負)のサインを特定し、結果を返します。

カテゴリ

数学

構文

IntegerResult = Sgn( Number );

パラメータ

数値

数値または数値属性。

戻り値

入力数が正の場合、結果は1になります。負の値は-1を返し、0は0を返します。

Sgn(425); ' 戻り値 1;

Sgn(0); ' returns 0;

Sgn(-37.3); ' returns -1;

In This Topic
Related Links