double (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

»查看产品信息 下载帮助（仅限Windows）

Owning Class: support

Requires: MathScript RT Module

c = double(a)

Description

Converts input elements to double-precision, floating-point numbers.

Details

Examples

Inputs

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.

Outputs

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.

Details

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)

﻿