Function Block BASE_CONVERT

The Function Block BASE_CONVERT converts a numeric value between different number systems.

Input NUM

Defines the number to be converted. All invalid characters are ignored without warning.

Input FROM

Defines the base in which the number to be converted is encoded. The valid range of values lies between 2 and 36.

Input TO

Defines the target base to which the input value should be converted. The valid range of values lies between 2 and 36.

Output

Returns the converted number if successful. If the value range is above 9, the numbers are replaced with letters. The letters are lowercase. Thus, the number 10 becomes a and 11 becomes b, etc.