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

AVEVA™ Plant SCADA

Rounding Up

  • Last UpdatedJul 18, 2023
  • 1 minute read

VBA does not have a specific round-up function. However, for negative numbers, both Fix() and Int() can be used to round upward, in different ways:

  • Fix() rounds towards 0 (up in the absolute sense, but down in terms of absolute magnitude). For example: Fix(-3.5) is -3.5.

  • Int() rounds away from 0 (up in terms of absolute magnitude, but down in the absolute sense). For example: Int(-3.5) is -4.

Related Links
TitleResults for “How to create a CRG?”Also Available in