Typecast a floating-point type to an unsigned integer or vice versa
HDL Coder / HDL Floating Point Operations / Float Typecast
The block casts the underlying bits of the input to the corresponding fixed-point or floating point representation. The input and output of the block contain the same number of bits. This figure shows how the block mask, behavior, and output data type changes dynamically depending on the input data type that you specify.
Port_1(u)— Input signal
Port to provide input to the block.
Port_1(y)— Output signal
Port to obtain calculated output from the block.
If have HDL Coder™ installed, you can generate HDL code for the block in the
Native Floating Point mode. For more information, see Float Typecast.