NullableTypes Class Library

NullableSingle.Subtract Method 

Computes the subtraction of the two specified NullableSingle structures.

[Visual Basic]
Public Shared Function Subtract( _
   ByVal x As NullableSingle, _
   ByVal y As NullableSingle _
) As NullableSingle
[C#]
public static NullableSingle Subtract(
   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 subtraction.

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.

See Also

NullableSingle Class | NullableTypes Namespace