Floating-Point Division

For a division operation of the X/Y form, a types extension is applied to select a standard implementation. The type of the operation result matches the operand type (after their possible extension). The following standard implementations are determined. All of them calculate the operands quotient:

  +y –y +0 –0 +∞ –∞ NaN
+x +z -z +∞ –∞ +0 -0 NaN
-x -z +z –∞ +∞ -0 +0 NaN
+0 +0 -0 NaN NaN +0 -0 NaN
-0 -0 +0 NaN NaN -0 +0 NaN
+∞ +∞ –∞ +∞ –∞ NaN NaN NaN
–∞ –∞ +∞ –∞ +∞ NaN NaN NaN
NaN NaN NaN NaN NaN NaN NaN NaN

See also:

Arithmetic Operators