Int (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Return the integer part of an integer or real number.
Syntax
Int(x)
Arguments
x
A number or string.
Returns
The integer part of x. If x is a string, it is first converted into a number.
Exceptions
If x is not a number or a numeric string, returns .
Example
Int('tag1')
Int(1)
Int(2.1)
Int("2.1")