Divider icon Floating Point Divider

Library: Floating Point Arithmetic

Behavior

This component divides the floating-point dividend on the upper west input by the divisor on the lower west input. It places the quotient on the east output and the IEEE remainder on the south output. Both results are rounded to the selected floating-point size.

The IEEE remainder is dividend − divisor × n, where n is the integer nearest to the exact quotient; if two integers are equally near, the even integer is used. This differs from the remainder produced by truncating the quotient toward zero.

The ERR output reports the quotient: it is 1 when the quotient is NaN and 0 otherwise. For example, a nonzero finite value divided by zero produces an infinite quotient and a NaN remainder, while ERR remains 0. An input containing unknown or error bits is converted to NaN.

Pins

West edge, north end (input, bit width matches Float size)
The dividend.
West edge, south end (input, bit width matches Float size)
The divisor.
East edge (output, bit width matches Float size)
The floating-point quotient.
South edge, east end (output, bit width matches Float size)
The IEEE remainder.
South edge, west end (output, bit width 1)
ERR: 1 if the quotient is NaN; otherwise 0.

Attributes

Float size
The floating-point width of both inputs and both arithmetic outputs: 8, 16, 32, or 64 bits.

Poke Tool Behavior

None.

Text Tool Behavior

None.

Back to Floating Point Arithmetic library