Because single precision numbers use only 32 bits, they require less memory than double-precision numbers while still offering many of the benefits of floating point arithmetic. The half-precision data type occupies only 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.
Simulink.NumericType | Specify floating-point, integer, or fixed-point data type |
ssGetDataTypeIsDoubleSingleorHalf | Determine whether registered data type is double, single, or half-precision data type |
ssGetDataTypeIsHalfPrecision | Determine whether registered data type is half-precision data type |
ssRegisterDataTypeHalfPrecision | Register half-precision data type and return its data type ID |
The Half-Precision Data Type in Simulink
Simulink® software features supported for the half-precision data type.