|x| Floating Point Absolute
| Library: | Floating Point Arithmetic |
Behavior
This component calculates the absolute value of the floating-point value on its west input and places the result on the east output. Negative zero becomes positive zero; positive values and positive infinity remain unchanged.
The ERR output is 1 when the result is NaN and 0 otherwise. An input containing unknown or error bits is converted to NaN.
Pins
- West edge (input, bit width matches Float size)
- The floating-point value whose absolute value is calculated.
- East edge (output, bit width matches Float size)
- The absolute value of the input.
- South edge (output, bit width 1)
- ERR: 1 if the result is NaN; otherwise 0.
Attributes
- Float size
- The floating-point width of the input and result: 8, 16, 32, or 64 bits.
Poke Tool Behavior
None.
Text Tool Behavior
None.