![]() | Download Help (Windows Only) |
Owning Class: string
Requires: MathScript RT Module
c = dec_to_bin(a)
c = dec_to_bin(a, b)
Legacy Name: dec2bin
Converts a decimal number to a binary number represented by a string.
Name | Description |
---|---|
a | Specifies a decimal number. a is an integer between 0 and 2^52-1. LabVIEW rounds a if a is not an integer. |
b | Controls the number of digits in c. If c has fewer than b digits, LabVIEW pads the beginning of c with zeros until it reaches b digits. b is an integer. |
Name | Description |
---|---|
c | Returns a binary number equivalent to a. Valid binary digits are 0 and 1. c is a string. |
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 = 2562525
C = dec_to_bin(A)
Helpful
Not Helpful