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

AVEVA™ InTouch HMI

Int() 函数

  • Last UpdatedFeb 05, 2018
  • 1 minute read

返回小于(或等于)指定数字的整数。

语法

result = Int (number)

参数

number

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

示例

Int(4.7) 返回 4。

Int(-4.7) 返回 -5。

备注:对于负实数,此函数将返回小于指定数字的整数。例如,Int(-4.7) 不是 -4,而是 -5。要返回整数部分,请使用 Trunc() 函数。请参阅 Trunc() 函数

In This Topic