I→FP Integer to Floating Point

Library: Floating Point Arithmetic

Behavior

This component interprets the integer on its west input according to Numeric Type, then converts that numeric value to the selected floating-point format.

2’s Complement treats the most significant input bit as a sign bit. Unsigned treats every input bit as part of a nonnegative magnitude, including for a 64-bit input.

An integer that cannot be represented exactly is rounded to the output precision. A large magnitude may overflow to infinity. Neither rounding nor overflow sets ERR. If the input contains unknown or error bits, the result is NaN and ERR is 1.

Pins

West edge (input, bit width matches Data Bits)
The signed or unsigned integer value to convert.
East edge (output, bit width matches Float size)
The floating-point representation of the input value.
South edge (output, bit width 1)
ERR: 1 if the integer input is not fully defined; otherwise 0.

Attributes

Data Bits
The integer input width, from 1 to 64 bits.
Float size
The floating-point output width: 8, 16, 32, or 64 bits.
Numeric Type
Selects signed two's-complement or unsigned interpretation of the input bits.

Poke Tool Behavior

None.

Text Tool Behavior

None.

Back to Floating Point Arithmetic library