SetMaxDecimalPlaces

This function determines the number of decimal places after which a floating-point number is truncated.

SetMaxDecimalPlaces 1:

Syntax

METHOD SetMaxDecimalPlaces
VAR_INPUT
  dp : DINT;
END_VAR

SetMaxDecimalPlaces 2: Inputs

Name

Type

dp

DINT

Sample call:

nDec := fbJson.SetMaxDecimalPlaces();