ITOS – Integer number to string conversion

Block SymbolLicensing group: STANDARD
PIC

Function Description
The ITOS block is used for converting an integer into text. The len parameter specifies the minimum length of the output string. If the number has a smaller number of digits, zeroes or spaces will be added according to the mode parameter. The radix parameter specifies the numerical system in which the conversion is to be performed. The output string does not contain any identification of the numerical system used (e.g. the 0x prefix for the hexadecimal system).

Input

n

Integer input of the block

Long (I32)

Output

sy

String output value

String

Parameters

len

Minimum length of output string   0  30

Long (I32)

mode

Output string format  1

Long (I32)

1 ....

Align right, fill with spaces

2 ....

Align right, fill with zeroes

3 ....

Align left, fill with spaces

radix

Radix  10

Long (I32)

2 ....

Binary

8 ....

Octal

10 ...

Decimal

16 ...

Hexadecimal

2024 © REX Controls s.r.o., www.rexygen.com