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

Analytics and Notifications for PI System Explorer (PI Server 2018)

Floor

  • Last UpdatedJan 11, 2023
  • 1 minute read

Return the nearest integer less than or equal to x.

Syntax

Floor(x)

Arguments

  • x

    Integer or a real number, or an attribute whose value evaluates to a number at time of evaluation

Returns

The nearest integer less than or equal to x

Exceptions

Returns an error if x is a digital state, time expression, time interval or a string

Notes

Unit of measure of the argument, if it exists, is carried over to the result

Example

  • Floor(3.14)

    [Returns 3]

  • Floor(-3.14)

    [Returns -4]

  • Floor(TagVal('att1', '*'))

    [Return the nearest integer less than or equal to the current value of 'att1']

In This Topic
TitleResults for “How to create a CRG?”Also Available in