Version:

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

## Syntax

c = double(a)

## a

Scalar or array of any dimension. The elements in a can be single-precision numbers, double-precision numbers, complex numbers, integers, unsigned integers, or Boolean values.

## c

Elements in a as double-precision, floating-point numbers. c is a scalar or an array of any dimension. 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.