Previous Topic: &DATECONV

Next Topic: &DECODE


&DEC

The &DEC built-in function returns the decimal equivalent of a hexadecimal value.

&DEC hexadecimal value

&DEC must be used to the right of an assignment statement.

Examples: &DEC

&NUM = &DEC FFFF         -* &NUM is set to 65535
&NAMELEN = &DEC &HEXLEN  -* &NAMELEN is set to a decimal
                         -* length
                         -* for example, if &HEXLEN is 10
                         -* then &NAMELEN is set to 16

Notes:

More information:

&HEX