SetMaxDecimalPlaces
This function specifies the number of decimal places after which a floating-point number is rounded.

Syntax
METHOD SetMaxDecimalPlaces : HRESULT
VAR_INPUT
    decimalPlaces: DINT;
END_VAR
 Return value
Name  | Type  | 
|---|---|
SetMaxDecimalPlaces  | HRESULT  | 
 Inputs
Name  | Type  | Description  | 
|---|---|---|
decimalPlaces  | DINT  | The number of decimal places to be set after which a floating-point number is truncated.  |