NullableTypes Class Library

NullableDouble.Divide Method 

Divides its first NullableDouble operand by its second.

[Visual Basic]
Public Shared Function Divide( _
   ByVal x As NullableDouble, _
   ByVal y As NullableDouble _
) As NullableDouble
[C#]
public static NullableDouble Divide(
   NullableDouble x,
   NullableDouble y
);

Parameters

x
A NullableDouble structure.
y
A NullableDouble structure.

Return Value

Null if either instance of NullableDouble is Null otherwise a NullableSingle structure whose Value property contains the results of the division.

Remarks

If the result of the operation is too small for a NullableDouble, it becomes positive zero or negative zero.

If the result of the operation is too large for a NullableDouble, it becomes PositiveInfinity or NegativeInfinity.

If the operation is invalid, the result of the operation becomes NaN.

If one or both operands of the operation is NaN, the result of the operation becomes NaN.

Exceptions

Exception TypeCondition
DivideByZeroExceptiony is Zero while x is not Null.

See Also

NullableDouble Class | NullableTypes Namespace