NullableTypes Class Library

NullableSingle.Divide Method 

Divides its first NullableSingle operand by its second.

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

Parameters

x
A NullableSingle structure.
y
A NullableSingle structure.

Return Value

Null if either instance of NullableSingle 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 NullableSingle, it becomes positive zero or negative zero.

If the result of the operation is too large for a NullableSingle, 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

NullableSingle Class | NullableTypes Namespace