F_Round

F_Round 1:

Rounds the decimal places of a floating point number.

Syntax:

FUNCTION F_Round : LREAL

F_Round 2: Inputs

Name

Type

Description

fValue

LREAL

Value whose decimal places are truncated.

nDecimals

UINT

Number of decimal places to be retained.

F_Round 3: Outputs

Name

Type

Description

F_Round

LREAL

Value with rounded 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)