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

在脚本中,可以使用 Sqrt() 函数计算指定的非负数的平方根。

注意:如果将负值传递给 Sqrt() 函数,则返回 -99.0000000。

语法

result = Sqrt (number)

参数

数字

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

示例

Sqrt(36) 返回 6。

Sqrt(perftag) 返回标记名 perftag 的值的平方根。

In This Topic
Related Links