INTEGER into STRING
The function INT_TO_STRING_LEADING_ZEROS converts a value of the data type INT (positive values) into a value of the data type STRING.Generates a result string in right-aligned decimal representation, filled with leading spaces up to the predefined maximum number of characters.
Input
input data type (only positive values)
Output
conversion result
Use only positive integer values. For negative values, please use INT_TO_STRING.
Function used |
String1 defined as |
Result |
---|---|---|
String1:=INT_TO_STRING(25) |
STRING[1] |
'5' |
STRING[2] |
'25' |
|
STRING[3] |
'025' |
|
STRING[4] |
'0025' |
|
STRING[5] |
'00025' |
|
STRING[6] |
'000025' |
|
STRING[7] |
'0000025' |
|
STRING[8] |
'00000025' |
|
and so on... |