Main Content

Construct half-precision numeric object

Use the `half`

constructor to assign a half-precision data type
to a number or variable. A half-precision data type occupies 16 bits of memory, but its
floating-point representation enables it to handle wider dynamic ranges than integer or
fixed-point data types of the same size.

For more information, see Floating-Point Numbers (Fixed-Point Designer).

These functions are supported for use with half-precision inputs.

To display the complete list of supported functions, at the MATLAB^{®} Command Window, enter:

methods(half(1))

The following functions which support half-precision inputs, do not support complex half-precision inputs.

`rsqrt`

`fma`

- Floating-Point Numbers (Fixed-Point Designer)
- Edge Detection with Sobel Method in Half-Precision
- Edge Detection with Sobel Method in Half-Precision (GPU Coder)