Convert

Top  Previous  Next

The following functions can be use to convert between different data types and strings.

 

 

The following functions convert numbers to strings:


dintToStr

Converts a number (DINT) to a string.


intToStr

Converts a number (INT) to a string.


sintToStr

Converts a number (SINT) to a string.


doubleToStr

Converts a double to a string


floatToStr

Converts a float to a string

 

 

 

The following functions convert strings to numbers:


strToDint

Converts a string to a number (DINT).


strToInt

Converts a string to a number (INT).


strToSint

Converts a string to a number (SINT).


strToDouble

Converts a string to a double


strToFloat

Converts a string to a float

 

 

The following functions convert numbers to hexadecimal strings:


dintToHex

Converts a number (DINT) to a hex string.


intToHex

Converts a number (INT) to a hex string.


sintToHex

Converts a number (SINT) to a hex string.

 

The following functions convert hexadecimal strings to numbers:


hexToDint

Converts a hex string to a number (DINT).


hexToInt

Converts a hex string to a number (INT).


hexToSint

Converts a hex string to a number (SINT).

 

 

The following functions are used to convert between pointers to memory and strings.


strToMemory

Copies contents of a string to memory.


strFromMemory

Copies contents of memory to a string.