SetMaxDecimalPlaces

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

SetMaxDecimalPlaces 1:

Syntax

METHOD SetMaxDecimalPlaces
VAR_INPUT
  dp : DINT;
END_VAR

SetMaxDecimalPlaces 2: Inputs

Name

Type

dp

DINT

Sample call:

nDec := fbJson.SetMaxDecimalPlaces();