Conversion Functions

All Functions (Alphabetically)

Name

Description

any_to_bool

Converts the input into Boolean value.

any_to_dint / any_to_udint

Converts the input to a 32-bit integer value.

any_to_int / any_to_uint

Converts the input to a 16-bit integer value.

any_to_lint / any_to_ulint

Converts the input to a long, 64-bit integer value.

any_to_lreal

Converts the input into a double precision floating point real value.

any_to_real

Converts the input into a single precision floating point real value.

any_to_sint / any_to_usint

Converts the input into a short, 8-bit integer value.

any_to_string

Converts the input into a character string value.

any_to_time

Converts the input into a time value.

bcd_to_bin

Converts a Binary Coded Decimal (BCD) value to a binary value.

bin_to_bcd

Converts a binary value to a Binary Coded Decimal (BCD) value.

num_to_string

Converts a number into a string value.

Convert Data to Another Data Type

These are the standard functions for converting a data into another data type.

Name

Description

any_to_bool

Converts the input into Boolean value.

any_to_dint / any_to_udint

Converts the input to a 32-bit integer value.

any_to_int / any_to_uint

Converts the input to a 16-bit integer value.

any_to_lint / any_to_ulint

Converts the input to a long, 64-bit integer value.

any_to_lreal

Converts the input into a double precision floating point real value.

any_to_real

Converts the input into a single precision floating point real value.

any_to_sint / any_to_usint

Converts the input into a short, 8-bit integer value.

any_to_string

Converts the input into a character string value.

any_to_time

Converts the input into a time value.

num_to_string

Converts a number into a string value.

BCD Format Conversions

These are the standard functions performing conversions in BCD format.

BCD conversion functions may not be supported by all targets.

Name

Description

bcd_to_bin

Converts a Binary Coded Decimal (BCD) value to a binary value.

bin_to_bcd

Converts a binary value to a Binary Coded Decimal (BCD) value.