intToStr (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


intToStr will convert a number (INT) to a string.

 

Input:

v : INT

Number to convert.

 

Returns: STRING

A string representing the value of v.

 

Declaration:

FUNCTION intToStr : STRING;
VAR_INPUT
  v : INT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
VAR
  result : STRING;
END_VAR;
 
PROGRAM test;
 
BEGIN
  ...
result := intToStr(v:=4711);
  // result will contain "4711" after the call
  ...
END;
 
END_PROGRAM;