Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

double (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: support

Requires: MathScript RT Module

Syntax

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

Examples

A = int8(12.3)
B = double(A)

Related Topics

int16
int32
int64
int8
single
uint16
uint32
uint64
uint8


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit