Function div
Source pub fn div(a: Real, b: Real) -> Real
Expand description
Divides the first value by the second.
This function handles division by zero gracefully by returning:
- NaN for 0/0
- Positive infinity for positive/0
- Negative infinity for negative/0
§Parameters
a
- Numerator
b
- Denominator
§Returns
The quotient a / b
, or appropriate value for division by zero.