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

AVEVA™ InTouch HMI

舍入、截断及确定符号

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,可以使用以下函数来舍入数字、截断数字以及确定数字的符号:

使用对象

作用

Abs()

计算某个值或表达式的绝对值。

Int()

计算某个值或表达式的整数部分。

Round()

舍入某个值或表达式。

Sgn()

确定某个值或表达式的符号(负、正、零)。

Trunc()

返回值或表达式中小数点之前的部分。