SetMaxDecimalPlaces

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

SetMaxDecimalPlaces 1:

Syntax

METHOD SetMaxDecimalPlaces : HRESULT
VAR_INPUT
    decimalPlaces: DINT;
END_VAR

SetMaxDecimalPlaces 2: Return value

Name

Type

SetMaxDecimalPlaces

HRESULT

SetMaxDecimalPlaces 3: Inputs

Name

Type

Description

decimalPlaces

DINT

The number of decimal places to be set after which a floating-point number is truncated.