NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.Add

Adds two Decimal values.

[Visual Basic]
Public Shared Function Add( _
   ByVal d1 As Decimal, _
   ByVal d2 As Decimal _
) As Decimal
[C#]
public static Decimal Add(
   Decimal d1,
   Decimal d2
);
[C++]
public: static Decimal Add(
   Decimal d1,
   Decimal d2
);
[JScript]
public static function Add(
   d1 : Decimal,
   d2 : Decimal
) : Decimal;

Parameters

d1
The left operand, a Decimal.
d2
The right operand, a Decimal.

Return Value

The sum of two decimal values.

Exceptions

Exception Type Condition
OverflowException is thrown if the sum of the numbers are too large to represent as a Decimal.

Remarks

The Addition method performs an arithmetic function by adding two Decimal values and returns the sum of the two values (d1 + d.).

See Also

Decimal Structure | Decimal Members | System Namespace