Version:

Converts the input elements to 8-bit signed integers.

## Syntax

c = int8(a)

## a

Scalar or array of any dimension of real numbers or of Booleans.

## c

Elements of a as 8-bit signed integers. 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 the 8-bit signed representation of a when the input is complex, use the real function to extract the real part of a, then use the int8 function to convert the real part.