INT_TO_STRING_LEADING_ZEROS

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.

Parameters

Input

Unnamed input (INT)

input data type (only positive values)

Output

Unnamed output (STRING)

conversion result

Remarks

Example

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...

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline