[Client]TagReadRoundToFormat
- Last UpdatedJul 19, 2023
- 1 minute read
This setting determines if the variable tag values returned by the Cicode functions TagRead and TagReadEx will be rounded to the format of the variable tag.
Quite often, the value reported for a variable tag will not be precise, resulting in a large number of decimal places. When this parameter is set, the precision of the value returned is rounded to the format of the tag.
For example, if the value from an I/O device for a tag is 3.4999999999999, but the format is ##.##, the rounded value will be 3.50.
Allowable Values:
-
0 - Values not rounded to format
-
1 - Values rounded to format
Default Value:
1