# int8 (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

c = int8(a)

## Description

Converts the input elements to 8-bit signed integers.

Details

Examples

## Inputs

Name Description
a Specifies a numeric scalar, vector, or matrix.

## Outputs

Name Description
c Returns elements of a as 8-bit signed integers. c is a scalar, vector, or matrix 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.

## Details

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

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 = [34.333, 123456.4, -38]
C = int8(A)