The C2D function returns the decimal value of the associated character string.
Portability note: the decimal result will vary for character encodings in different machine environments.
result = C2D( string [, n ] ) |
Examples:
say C2D( 'FF81'x ) -- shows 65409 say C2D( '81'x, 1 ) -- shows -127 say C2D( '81'x, 2 ) -- shows 129 |