Download Help (Windows Only) |
Owning Class: support
Requires: MathScript RT Module
c = double(a)
Converts input elements to double-precision, floating-point numbers.
Name | Description |
---|---|
a | Specifies a matrix. The elements in a can be single-precision numbers, double-precision numbers, complex numbers, integers, unsigned integers, character arrays, or Boolean values. |
Name | Description |
---|---|
c | Returns the elements in a as double-precision, floating-point numbers. c is a matrix. If a is a complex number, this function converts the real and imaginary parts of the number separately and then returns a complex number that consists of those parts. To return a double-precision, floating-point representation of a when the input is complex, use the real function to extract the real part of a. If a is a character array, c returns the ASCII characters that represent a as double-precision, floating-point numbers. |
This function has the same approximate range as double-precision numbers in LabVIEW. If an element in a is greater than the maximum positive number, the corresponding element in c is Inf. If an element in a is less than the minimum positive number or greater than the minimum negative number, the corresponding element in c is 0. If an element in a is less than the maximum negative number, the corresponding element in c is -Inf.
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 | Yes |
A = int8(12.3)
B = double(A)