BYTE_TO_DECSTR
![BYTE_TO_DECSTR 1:](Images/png/9007200188487947__Web.png)
This function converts a decimal number into a decimal string (base 10).
Return value
Name | Type | Description |
---|---|---|
BYTE_TO_DECSTR | T_MaxString |
|
Inputs
VAR_INPUT
in : BYTE;
iPrecision : INT;
END_VAR
Name | Type | Description |
---|---|---|
in | BYTE | The decimal number to be converted. |
iPrecision | INT | Minimum number of displayed digits. If the actual number of significant digits is less than the iPrecision parameter, the resulting string is filled with zeros from the left. If the number of significant digits is greater than the iPrecision parameter, the resulting string is not truncated! If the iPrecision parameter and the in parameter have the value zero, the resulting string is an empty string. |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, Arm®) | Tc2_Utilities (System) |