# uint8

Version:

Converts the input elements to 8-bit unsigned integers.

## Syntax

c = uint8(a)

## a

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

## c

Elements of a as 8-bit unsigned 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.

## Special Cases

If an element in a is greater than 2^8-1, the corresponding element in c is 2^8-1. If an element in a is less than 1, the corresponding element in c is 0.

A = [256.333, 56.4, -88]
C = uint8(A)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices