bin2dec
Convert number in base 2 to decimal.
Syntax
- D = bin2dec(TXT)
Input argument
- TXT - a char array.
Output argument
- D - result of bin2dec: an integer value.
Description
bin2dec converts number in base 2 to decimal.
Note:
- bin2dec and dec2bin are inverses of one another.
Example
bin2dec('11')
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET