F_CutDecimals

F_CutDecimals 1:

Truncates the decimal places of a floating point number.

Syntax:

FUNCTION F_CutDecimals : LREAL

F_CutDecimals 2: Inputs

Name

Type

Description

fValue

LREAL

Value whose decimal places are truncated.

nDecimals

UINT

Number of decimal places to be retained.

F_CutDecimals 3: Outputs

Name

Type

Description

F_CutDecimals

LREAL

Value with truncated decimal places.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)