Owning Class: string
Requires: MathScript RT Module
c = bin_to_dec(a)
Legacy Name: bin2dec
Converts a binary number represented by a string to a decimal number.
| Name | Description |
|---|---|
| a | Specifies a binary string with digits 0 and 1. |
| Name | Description |
|---|---|
| c | Returns a decimal number equivalent to a. LabVIEW returns an error if you specify letters or digits other than 0, 1, or white space in a. |
A = '101111011'
C = bin_to_dec(A)