Float Typecast
R2026bTypecast data between unsigned integers and floating-point data types
Libraries:
HDL Coder /
HDL Floating Point Operations
Description
The Float Typecast block typecasts the underlying bits of the input signal to the corresponding fixed-point or floating-point representation. The input and output of the block contain the same number of bits. This table shows the supported input and corresponding output data types.
| Input Data Type | Output Data Type |
|---|---|
half | uint16 |
single | uint32 |
double | uint64 |
uint32 | single |
uint64 | double |
uint16 | half |
This figure shows how the block mask, behavior, and output data type change depending on the input data type.

