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

AVEVA™ InTouch HMI

Sgn() 函数

  • Last UpdatedFeb 05, 2018
  • 1 minute read

返回某个数字的符号。使用它来确定数字、标记名或表达式是负、正还是零。

语法

result = Sgn (number)

参数

number

数字、模拟标记名或数值表达式。

示例

Sgn(425) 返回 1。

Sgn(0) 返回 0。

Sgn(-37.3) 返回 -1。

In This Topic