SetMaxDecimalPlaces
This function specifies the number of decimal places after which a floating-point number is rounded.
Syntax
METHOD SetMaxDecimalPlaces
VAR_INPUT
dp : DINT;
END_VAR
Inputs
Name | Type |
---|---|
dp | DINT |
Sample call:
nDec := fbJson.SetMaxDecimalPlaces();