![]() | Download Help (Windows Only) |
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. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | Yes |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
A = '101111011'
C = bin_to_dec(A)
Helpful
Not Helpful