floatDiv (Function)

Signature: floatDiv(x: t0, y: t0) -> t0

Description: The IEEE quotient x/y: a zero divisor yields an infinity of the right sign, or NaN for 0/0. Total, so it never performs Arith.divideByZero, and a kernel may call it on any device.

Parameters

  • x (t0): The dividend
  • y (t0): The divisor

Returns: t0

Example

print(floatDiv(1.0, 0.0))  // inf
print (floatDiv (1.0, 0.0))  // inf