Version:

Converts input elements to single-precision numbers.

## Syntax

c = single(a)

## a

Numeric scalar or numeric array of any dimension.

## c

Elements of a as single-precision numbers. c is a scalar or an array of the same size as a. 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 single-precision representation of a when the input is complex, use the real function to extract the real part of a, then use the single function to convert the real part.