Owning Class: support
Requires: MathScript RT Module
c = int16(a)
Converts the input elements to 16-bit signed integers.
| Name | Description |
|---|---|
| a | Specifies a numeric scalar, vector, or matrix. |
| Name | Description |
|---|---|
| c | Returns the elements of a as 16-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 16-bit signed representation of a when the input is complex, use the real function to extract the real part of a, then use the int16 function to convert the real part. |
If an element in a is greater than 2^15-1, the corresponding element in c is 2^15-1. If an element in a is less than -2^15, the corresponding element in c is -2^15.
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 |
A = [23456, 123456, 8383838]
C = int16(A)