SetMaxDecimalPlaces
This function determines the number of decimal places after which a floating-point number is truncated.
![SetMaxDecimalPlaces 1:](Images/jpg/13466684939__Web.jpg)
Syntax
METHOD SetMaxDecimalPlaces
VAR_INPUT
dp : DINT;
END_VAR
Inputs
Name | Type |
---|---|
dp | DINT |
Sample call:
nDec := fbJson.SetMaxDecimalPlaces();