Parameters > Citect.ini File Parameters > CtAPI Parameters > [CtAPI]RoundToFormat


This setting configures whether or not variable tag values returned by CTAPI functions CtTagRead, CtTagReadEx and CtListData 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 coming from the IO device for the tag is 3.4999999999999, but the format is ##.##, the rounded value will be 3.50.

Allowable Values:

Default Value: 1

See Also