hex2dec

Convert number in base 16 to decimal.

Syntax

  • D = hex2dec(TXT)

Input argument

  • TXT - a char array.

Output argument

  • D - result of hex2dec: an integer value.

Description

hex2dec converts number in base 16 to decimal.

Note:

- hex2dec and dec2hex are inverses of one another.

Example

bin2dec('11')

See also

dec2bin.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated