F_Round
Rounds the decimal places of a floating point number.
Syntax:
FUNCTION F_Round : LREAL
Inputs
Name | Type | Description |
---|---|---|
fValue | LREAL | Value whose decimal places are truncated. |
nDecimals | UINT | Number of decimal places to be retained. |
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) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.7.0) |