NullableTypes Class Library

NullableDouble.Add Method 

Computes the sum of the two specified NullableDouble structures.

[Visual Basic]
Public Shared Function Add( _
   ByVal x As NullableDouble, _
   ByVal y As NullableDouble _
) As NullableDouble
[C#]
public static NullableDouble Add(
   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 NullableDouble structure whose Value property contains the results of the addition.

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 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

NullableDouble Class | NullableTypes Namespace