22.11.9.3 Decimal Text-To-Integer Conversion

This function is used to convert a decimal string to integers. Convert the decimal integer text in Parameter 2 (Convert-From Data Buffer) into an integer, and store it in Parameter 1 (Convert-To Address).

_decasc2bin (Conversion result address, Conversion source buffer)

Example expression 1 (When the bit length is 16 bits)

_decasc2bin ([w:[#INTERNAL]LS0100], databuf0)

The content of "databuf0" is as follows:

The above data are converted as follows:

 

Example expression 2 (When the bit length is 32 bits)

_decasc2bin ([w:[#INTERNAL]LS0100], databuf0)

The content of "databuf0" is as follows:

The above data are converted as follows: